Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intel cpu build #77

Merged
merged 7 commits into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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' }}
Loading