-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (52 loc) · 1.24 KB
/
build-all.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
name: Build All
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }}
jobs:
build-cmake:
strategy:
matrix:
os: [ubuntu-latest, ubuntu-arm-latest, windows-latest, macos-latest, macos-arm-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '21'
distribution: 'adopt'
cache: 'gradle'
- uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan
- uses: gradle/gradle-build-action@v2
with:
arguments: cmakeBuild
build:
needs: build-cmake
runs-on: macos-latest
steps:
- uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan
- uses: gradle/gradle-build-action@v2
with:
arguments: -Pproduction=true build
release:
needs: build
runs-on: macos-latest
steps:
- uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan
- uses: gradle/gradle-build-action@v2
with:
arguments: -Pproduction=true publish