-
Notifications
You must be signed in to change notification settings - Fork 8
62 lines (53 loc) · 1.45 KB
/
Copy pathbuild.yml
File metadata and controls
62 lines (53 loc) · 1.45 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build Artifacts
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
include:
- target: x86_64-unknown-linux
runner: ubuntu-latest
- target: aarch64-unknown-linux
runner: ubuntu-latest
skip-test: true
- target: x86_64-pc-windows-msvc
runner: windows-latest
- target: darwin
runner: macos-latest
name: Build ${{ matrix.target }}
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v6
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '25'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build Artifacts
run: ./gradlew build -Ptarget=${{ matrix.target }} -x test
- name: Run Tests
if: ${{ !matrix.skip-test }}
run: ./gradlew test
- name: Upload Test Reports
if: failure()
uses: actions/upload-artifact@v6
with:
name: test-reports-${{ matrix.target }}
path: |
**/build/reports/tests/**/*.html
**/build/test-results/**/*.xml
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: |
api/build/libs/*.jar
native/build/libs/*.jar