-
Notifications
You must be signed in to change notification settings - Fork 1
88 lines (71 loc) · 1.96 KB
/
build.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Build Gradle project
on:
push:
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
jobs:
build:
runs-on: macos-14
steps:
- name: Checkout project sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
with:
version: '0.14.0-dev.2643+fb43e91b2'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build
run: |
./gradlew assemble
- name: Upload library
uses: actions/upload-artifact@v4
with:
name: library
path: build/libs/
if-no-files-found: error
test:
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-latest, macos-13, macos-latest, windows-2019, windows-latest, alpine ]
include:
- os: alpine
container: eclipse-temurin:17-alpine
fail-fast: false
runs-on: ${{ matrix.os == 'alpine' && 'ubuntu-latest' || matrix.os }}
container: ${{ matrix.container }}
needs: build
steps:
- name: Checkout project sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
if: matrix.os != 'alpine'
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Download library
uses: actions/download-artifact@v4
with:
name: library
path: build/remote/
- name: Test
run: |
./gradlew externalTest
- name: Upload build reports
uses: actions/upload-artifact@v4
if: always()
with:
name: test-reports-${{ matrix.os }}
path: build/reports/