-
Notifications
You must be signed in to change notification settings - Fork 31
42 lines (40 loc) · 1.34 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Release
on:
release:
types: [published]
jobs:
build:
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
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_content_type: application/octet-stream
asset_path: xcresults
asset_name: xcresults
if: ${{ steps.meta.outputs.arch == 'arm64' }}