-
-
Notifications
You must be signed in to change notification settings - Fork 55
45 lines (43 loc) · 1.15 KB
/
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
name: "Build"
on:
pull_request:
push:
jobs:
test:
strategy:
fail-fast: false
matrix:
# TODO: sanitize: [On, Off]
os: [ubuntu-24.04]
build_type: [Debug, Release]
include:
- os: ubuntu-24.04
cc: clang-14
cxx: clang++-14
- os: ubuntu-24.04
build_type: Debug
codecov: on
analysis: on
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}
CODECOV: ${{ matrix.codecov }}
ANALYSIS: ${{ matrix.analysis }}
timeout-minutes: 240 # 4h
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: ./.github/actions/build
id: build
with:
update_release: ${{ matrix.build_type == 'Release' }}
- name: Update latest release
if: success() && github.ref == 'refs/heads/main' && ${{ matrix.build_type == 'Release' }}
uses: pyTooling/Actions/releaser@main
with:
tag: latest
rm: true
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ steps.build.outputs.release_archive }}