Skip to content

Commit

Permalink
play with arch
Browse files Browse the repository at this point in the history
  • Loading branch information
eroshenqa committed Nov 5, 2024
1 parent 94ecce9 commit 8a71c79
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,26 @@ jobs:
runs-on: ${{ matrix.agent }}
strategy:
matrix:
agent: [ "macos-13", "macos-15" ]
agent: [ "macos-13", "latest" ]
steps:
- uses: actions/checkout@v3
- uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'
- run: echo "arch=$(arch)" >> $GITHUB_OUTPUT
id: meta
- run: ./gradlew build
- run: ./gradlew nativeCompile
- run: echo "ARCH=$(arch)" >> "$GITHUB_ENV"
- run: |
./gradlew nativeCompile
cp ./build/native/nativeCompile/xcresults ./xcresults
cp ./build/native/nativeCompile/xcresults ./xcresults-${{ steps.meta.outputs.arch }}
- uses: actions/upload-artifact@v4
with:
name: xcresults
path: ./build/native/nativeCompile/xcresults
name: xcresults-${{ steps.meta.outputs.arch }}
path: xcresults-${{ steps.meta.outputs.arch }}
- uses: actions/upload-artifact@v4
with:
name: xcresults-amd64
path: ./build/native/nativeCompile/xcresults
name: xcresults
path: xcresults
if: ${{ steps.meta.outputs.arch == 'arm64' }}

0 comments on commit 8a71c79

Please sign in to comment.