update deps and add build ci #48
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: Checks | |
on: [pull_request] | |
jobs: | |
checks: | |
name: Run black-desk/checks. | |
permissions: | |
checks: write | |
contents: read | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: black-desk/checks@master | |
build-and-test: | |
name: Build. | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: | | |
export CPM_DOWNLOAD_ALL="ON" && | |
export CFLAGS="$CFLAGS -Wall" && | |
export CFLAGS="$CFLAGS -Wextra" && | |
export CFLAGS="$CFLAGS -Wpedantic" && | |
export CFLAGS="$CFLAGS -Wno-extra-semi -Wno-unused-command-line-argument -Wno-gnu-zero-variadic-macro-arguments" && | |
export CFLAGS="$CFLAGS -fsanitize=address,undefined" && | |
export CXXFLAGS="$CFLAGS" && | |
cmake -B build && | |
cmake --build build |