Fix off-by-one in docs #353
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: Presubmit Checks | |
on: | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '0 2 * * 0' # Weekly | |
jobs: | |
sanitizers: | |
name: sanitizer (${{ matrix.sanitizer }}) | |
runs-on: ubuntu-latest | |
permissions: | |
packages: read | |
container: | |
image: ghcr.io/charlesnicholson/docker-image:latest | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
matrix: | |
sanitizer: [ "memory", "address", "safe-stack", "undefined" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: CC=clang CXX=clang++ COBS_SANITIZER=${{ matrix.sanitizer }} make -j | |
arm-cm4: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: read | |
container: | |
image: ghcr.io/charlesnicholson/docker-image:latest | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: arm-none-eabi-gcc -mcpu=cortex-m4 -Os -Werror -Wall -Wextra -Wconversion -c cobs.c | |
linux: | |
name: linux (${{ matrix.compiler.name }}, ${{ matrix.architecture }}) | |
runs-on: ubuntu-latest | |
permissions: | |
packages: read | |
container: | |
image: ghcr.io/charlesnicholson/docker-image:latest | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
strategy: | |
matrix: | |
compiler: | |
- { name: "clang", env: "CC=clang CXX=clang++" } | |
- { name: "gcc", env: "CC=gcc CXX=g++" } | |
architecture: [32, 64] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: ${{ matrix.compiler.env }} COBS_LINUXARCH=${{ matrix.architecture }} make -j | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: make -j | |
win: | |
name: windows (msvc, ${{ matrix.architecture }}) | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
architecture: [32, 64] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
shell: cmd | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars${{ matrix.architecture }}.bat" | |
call make-win.bat | |
all-checks-pass: | |
needs: [sanitizers, linux, macos, win, arm-cm4] | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo Done | |