Skip to content

Create GitHub CI workflow #1

Create GitHub CI workflow

Create GitHub CI workflow #1

Workflow file for this run

name: C/C++ CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.sys.os }}
strategy:
matrix:
sys:
- { os: windows-latest, shell: 'msys2 {0}' }
- { os: ubuntu-latest, shell: bash }
- { os: macos-latest, shell: bash }
defaults:
run:
shell: ${{ matrix.sys.shell }}
steps:
- uses: actions/checkout@v4
- if: ${{ runner.os == 'Windows' }}
# based on https://www.msys2.org/docs/ci/
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: git mingw-w64-ucrt-x86_64-gcc
- name: make
run: make clean && make -j
- name: make check
run: make check -j