Return failing exit code if jank
or jank-test
catches exception in main
#993
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build" | |
on: | |
pull_request: | |
push: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# Ubuntu | |
## Lint all sources | |
- name: Ubuntu - lint | |
os: ubuntu-24.04 | |
lint: true | |
## Debug + clang-tidy + coverage | |
- name: Ubuntu - debug, analysis, coverage | |
os: ubuntu-24.04 | |
build_type: Debug | |
sanitize: none | |
coverage: on | |
analyze: on | |
## Debug + sanitization | |
- name: Ubuntu - address sanitizer | |
os: ubuntu-24.04 | |
build_type: Debug | |
sanitize: address | |
- name: Ubuntu - undefined behavior sanitizer | |
os: ubuntu-24.04 | |
build_type: Debug | |
sanitize: undefined | |
- name: Ubuntu - thread sanitizer | |
os: ubuntu-24.04 | |
build_type: Debug | |
sanitize: thread | |
## Release | |
- name: Ubuntu - release | |
os: ubuntu-24.04 | |
build_type: Release | |
sanitize: none | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.name }} | |
env: | |
JANK_MATRIX_ID: ${{ matrix.os }}-${{ matrix.build_type }}-${{ matrix.sanitize }} | |
JANK_BUILD_TYPE: ${{ matrix.build_type }} | |
JANK_LINT: ${{ matrix.lint }} | |
JANK_COVERAGE: ${{ matrix.coverage }} | |
JANK_ANALYZE: ${{ matrix.analyze }} | |
JANK_SANITIZE: ${{ matrix.sanitize }} | |
ASAN_OPTIONS: detect_leaks=0 | |
TERM: xterm | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Build and test | |
run: | | |
curl -sL -o install-bb https://raw.githubusercontent.com/babashka/babashka/master/install | |
chmod +x install-bb | |
sudo ./install-bb | |
./bin/jank/check_everything.clj |