-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.39 KB
/
test-build.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Test building C++ targets
on: [push, pull_request]
jobs:
setup-matrix:
uses: ./.github/workflows/generate-matrix.yml
with:
mode: build
docker-build:
uses: ./.github/workflows/docker-build.yml
permissions:
packages: write
with:
ubuntu-version: 22.04
llvm-version: 17
matrix-job:
runs-on: ubuntu-latest
needs: [setup-matrix, docker-build]
if: ${{ needs.setup-matrix.outputs.targets != '[]' }}
strategy:
fail-fast: false
matrix:
TARGET: ${{ fromJson(needs.setup-matrix.outputs.targets) }}
container: ${{ needs.docker-build.outputs.image }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Build target (clang++)
id: clang
uses: ./.github/actions/build-action
with:
compiler: clang++
- name: Build target (g++)
id: gcc
# ignore failures in the previous step
if: success() || steps.clang.conclusion == 'failure'
uses: ./.github/actions/build-action
with:
compiler: g++
- name: Build target (clang++-17, libc++)
# ignore failures in the previous two steps
if: success() || steps.clang.conclusion == 'failure' || steps.gcc.conclusion == 'failure'
uses: ./.github/actions/build-action
with:
compiler: clang++-17
stdlib: libc++