Skip to content

Add CI-MATH-001, CI-STRUCT-001; expand SRS-001; standardise tests and… #2

Add CI-MATH-001, CI-STRUCT-001; expand SRS-001; standardise tests and…

Add CI-MATH-001, CI-STRUCT-001; expand SRS-001; standardise tests and… #2

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
env:
BUILD_TYPE: Release
BUILD_DIR: build
GENERATOR: Ninja
CCACHE_DIR: ~/.ccache
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
./scripts/deps.sh
- name: Restore ccache
uses: actions/cache@v4
with:
path: ~/.ccache
key: ccache-${{ runner.os }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
ccache-${{ runner.os }}-${{ github.ref_name }}-
ccache-${{ runner.os }}-
- name: Show ccache stats (before)
run: ccache -s || true
- name: Build + Test
run: make test
- name: Show ccache stats (after)
run: ccache -s || true