Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
abbasnaqdi committed Nov 30, 2023
1 parent ca37135 commit 76aef6b
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,6 @@ jobs:
fi
build_and_upload_amd64:
runs-on: macos-13
needs: check_tag

steps:
- uses: actions/checkout@v2
- name: Build amd64 nekoray
run: |
bash builder.sh
- name: Upload amd64 artifact
uses: actions/upload-artifact@v2
with:
name: nekoray_amd64
path: nekoray/build/nekoray_amd64.zip

build_and_upload_arm64:
runs-on: macos-13-xlarge
needs: check_tag
Expand All @@ -57,25 +41,26 @@ jobs:
name: nekoray_arm64
path: nekoray/build/nekoray_arm64.zip

test_amd64:

test_arm64:
strategy:
matrix:
os: [macos-11, macos-12, macos-13]
os: [macos-13-xlarge]

runs-on: ${{ matrix.os }}
needs: build_and_upload_amd64
needs: build_and_upload_arm64

steps:
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: nekoray_amd64
name: nekoray_arm64
path: ./

- name: Unzip Artifact
run: |
unzip -q nekoray_amd64.zip
mv nekoray_amd64.app nekoray.app
unzip -q nekoray_arm64.zip
mv nekoray_arm64.app nekoray.app
- name: Run Nekoray
run: |
Expand All @@ -88,25 +73,43 @@ jobs:
exit 1
fi
test_arm64:
build_and_upload_amd64:
runs-on: macos-13
needs: build_and_upload_arm64

steps:
- uses: actions/checkout@v2
- name: Build amd64 nekoray
run: |
bash builder.sh
- name: Upload amd64 artifact
uses: actions/upload-artifact@v2
with:
name: nekoray_amd64
path: nekoray/build/nekoray_amd64.zip


test_amd64:
strategy:
matrix:
os: [macos-13-xlarge]
os: [macos-11, macos-12, macos-13]

runs-on: ${{ matrix.os }}
needs: build_and_upload_arm64
needs: build_and_upload_amd64

steps:
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: nekoray_arm64
name: nekoray_amd64
path: ./

- name: Unzip Artifact
run: |
unzip -q nekoray_arm64.zip
mv nekoray_arm64.app nekoray.app
unzip -q nekoray_amd64.zip
mv nekoray_amd64.app nekoray.app
- name: Run Nekoray
run: |
Expand Down

0 comments on commit 76aef6b

Please sign in to comment.