mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
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 the matrix strategy, skipping GDB if it's not supported for the platform
|
|
jobs:
|
|
run-tests:
|
|
continue-on-error: true
|
|
strategy:
|
|
matrix:
|
|
platforms:
|
|
- { os: ubuntu-latest, preinstall: sudo apt update && sudo apt install gdb, gdb_enabled: true }
|
|
- { os: windows-latest, preinstall: , gdb_enabled: true }
|
|
- { os: macos-latest, preinstall: , gdb_enabled: false }
|
|
commands:
|
|
- { exec: make tests, gdb: false }
|
|
- { exec: make tests, gdb: true }
|
|
|
|
runs-on: ${{ matrix.platforms.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Preinstall dependencies
|
|
if: (matrix.commands.gdb == true && matrix.platforms.gdb_enabled == false) != true
|
|
run: ${{ matrix.platforms.preinstall }}
|
|
- name: run the tests
|
|
if: (matrix.commands.gdb == true && matrix.platforms.gdb_enabled == false) != true
|
|
run: ${{ matrix.commands.exec }}
|