-
Notifications
You must be signed in to change notification settings - Fork 29
51 lines (46 loc) · 1.63 KB
/
generate-tools.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
name: "Build tools"
on:
pull_request:
paths-ignore:
- 'spectool/**'
jobs:
build_tools:
name: Build all tools for ${{ matrix.target.os }} ${{ matrix.target.cmake_env }}
runs-on: ${{ matrix.target.os }}
strategy:
fail-fast: false
matrix:
target: [
{"os": "ubuntu-latest", "cmake_env": "CC=gcc-14"},
{"os": "ubuntu-latest", "cmake_env": "CC=clang-18"},
{"os": "ubuntu-20.04", "cmake_env": "CC=gcc-9"},
{"os": "ubuntu-20.04", "cmake_env": "CC=clang-10"},
{"os": "macos-latest", "cmake_env": "CMAKE_OSX_ARCHITECTURES=arm64"},
{"os": "macos-latest", "cmake_env": "CMAKE_OSX_ARCHITECTURES=x86_64"},
{"os": "windows-latest"},
]
include:
- os: windows-latest
triplet: x64-windows
- os: ubuntu-latest
triplet: x64-linux
- os: ubuntu-20.04
triplet: x64-linux
- os: macos-latest
triplet: x64-osx
env:
CMAKE_OPTIONS: -DDEV_MODE=ON
CMAKE_ENV: ${{ matrix.target.cmake_env }}
steps:
- name: list compilers
if: ${{ contains(matrix.target.os, 'ubuntu') }}
run: dpkg --list | grep compiler
- name: Get pushed code
uses: actions/checkout@v4
- name: Configure CMake
run: ${{ env.CMAKE_ENV }} cmake -S . -B _build ${{ env.CMAKE_OPTIONS }}
- name: Build with CMake
run: cmake --build _build --config Debug --parallel
- name: Test installation
run: |
cmake --install _build --config Debug --prefix _built