-
-
Notifications
You must be signed in to change notification settings - Fork 55
48 lines (46 loc) · 1.36 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
46
47
48
name: "Build"
on:
pull_request:
push:
jobs:
test:
strategy:
fail-fast: false
matrix:
# TODO: sanitize: [On, Off]
os: [ubuntu-24.04]
# TODO: Enable release once we no longer have a Clang crash:
# https://github.com/jank-lang/jank/actions/runs/12269972895/job/34234432107
build_type: [Debug]
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
- name: Build and test
uses: ./.github/actions/build
id: build
with:
update_release: ${{ github.ref == 'refs/heads/main' && 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 }}