-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 955 Bytes
/
build.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
43
44
name: build
env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
target: [linux-x64, linux-arm64, windows-x64, windows-arm64, macos-arm64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: zulu
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: build
run: ./gradlew build
- name: release binary
run: |
VARIANT=$(echo ${{ matrix.target }} | sed -E 's/-x64/X64/; s/-arm64/Arm64/')
./gradlew ${variant}Binary
- name: archive vat
uses: actions/upload-artifact@v4
with:
name: vat
path: build/libs/vat-${{ matrix.target }}