Files
Toy/.github/workflows/continuous-integration-v2.yml
2024-09-22 15:03:34 +10:00

38 lines
898 B
YAML

name: Continuous Integration v2.x
#trigger when these occur
on:
push:
branches:
- v2
pull_request:
types:
- opened
- edited
- reopened
branches:
- v2
workflow_dispatch:
#CI workflows using a matrix
jobs:
run-test-suites:
strategy:
matrix:
platforms:
- { os: ubuntu-latest, preinstall: sudo apt-get install gdb, gdb_skip: false }
- { os: windows-latest, preinstall: , gdb_skip: false }
- { os: macos-latest, preinstall: , gdb_skip: true }
commands:
- make tests
- make tests-gdb
runs-on: ${{ matrix.platforms.os }}
steps:
- uses: actions/checkout@v4
- name: Preinstall dependencies
run: ${{ matrix.platforms.preinstall }}
- name: run the test suites
if: matrix.platforms.gdb_skip != true
run: ${{ matrix.commands }}