-
Notifications
You must be signed in to change notification settings - Fork 69
39 lines (39 loc) · 1.2 KB
/
main.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
name: Main pipeline
on: [push]
jobs:
build:
strategy:
matrix:
java: [8, 11, 17, 21]
os:
- os: ubuntu-latest
compiler_install_command: sudo apt install g++ cmake
cc: gcc
cxx: g++
- os: macos-latest
compiler_install_command: brew install cmake
cc: clang
cxx: clang++
- os: windows-latest
compiler_install_command: choco install cmake
prebuild_script: '"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"'
cc: cl
cxx: cl
runs-on: ${{ matrix.os.os }}
name: Run full test suite on JDK ${{ matrix.java }} on ${{ matrix.os.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Install C++ dependencies
run: ${{ matrix.os.compiler_install_command }}
- name: Build with Gradle
run: |
${{ matrix.os.prebuild_script }}
./gradlew build
env:
CC: ${{ matrix.os.cc }}
CXX: ${{ matrix.os.cxx }}