Skip to content

Commit

Permalink
intel cpu build (via #77)
Browse files Browse the repository at this point in the history
  • Loading branch information
eroshenkoam authored Nov 5, 2024
1 parent a7e92dd commit 2be9a59
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,37 @@ on:

jobs:
build:
runs-on: macos-latest
runs-on: ${{ matrix.agent }}
strategy:
matrix:
agent: [ "macos-12", "macos-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: |
./gradlew nativeCompile
cp ./build/native/nativeCompile/xcresults ./xcresults
cp ./build/native/nativeCompile/xcresults ./xcresults-${{ steps.meta.outputs.arch }}
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_content_type: application/octet-stream
asset_path: xcresults-${{ steps.meta.outputs.arch }}
asset_name: xcresults-${{ steps.meta.outputs.arch }}
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/native/nativeCompile/xcresults
asset_name: xcresults
asset_content_type: application/octet-stream
asset_path: xcresults
asset_name: xcresults
if: ${{ steps.meta.outputs.arch == 'arm64' }}

0 comments on commit 2be9a59

Please sign in to comment.