-
Notifications
You must be signed in to change notification settings - Fork 23
60 lines (57 loc) · 1.55 KB
/
build.yml
File metadata and controls
60 lines (57 loc) · 1.55 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
name: Build
on:
push:
branches:
- main
pull_request:
env:
GO_VERSION: 1.25.10
jobs:
build-all:
name: Build all (from Linux)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Free up disk space
uses: ./.github/actions/free-disk-space
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: native/go.sum
- name: Setup Java 8
uses: actions/setup-java@v5
with:
java-version: '8'
distribution: 'temurin'
- name: Go Test
run: make test-go
- name: Maven Version (Check for Profile Selection debugging)
run: mvn -version
- name: Build
run: make build-all
build:
name: Build ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: native/go.sum
- name: Setup Java 11
# macos-latest does not support Java 8
uses: actions/setup-java@v5
with:
java-version: '11'
distribution: 'temurin'
- name: Maven Version (Check for Profile Selection debugging)
run: mvn -version
- name: Build and test for the current platform (${{ matrix.os }})
run: make build-current-platform