diff --git a/.github/workflows/continuous-integration-v2.yml b/.github/workflows/continuous-integration-v2.yml index 51371b9..092c7c3 100644 --- a/.github/workflows/continuous-integration-v2.yml +++ b/.github/workflows/continuous-integration-v2.yml @@ -14,26 +14,16 @@ on: - v2 workflow_dispatch: -#CI workflows using the matrix strategy, skipping GDB if it's not supported for the platform +#CI workflows, limited coverage atm jobs: - run-tests: + units: 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 }} + runs-on: ubuntu-latest 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 }} + run: sudo apt update && sudo apt install gdb + - name: Run the tests + run: make tests + - name: Run the tests under gdb + run: make tests-gdb diff --git a/makefile b/makefile index 85398f7..1cfa2a6 100644 --- a/makefile +++ b/makefile @@ -23,10 +23,13 @@ source: repl: source $(MAKE) -C repl -k -.PHONY: tests +.PHONY: tests tests-ci tests: clean $(MAKE) -C tests -k +tests-gdb: clean + $(MAKE) -C tests -k gdb + #util targets $(TOY_OUTDIR): mkdir $(TOY_OUTDIR) diff --git a/tests/makefile b/tests/makefile index 8ac2fad..bc34806 100644 --- a/tests/makefile +++ b/tests/makefile @@ -3,4 +3,7 @@ export CFLAGS+=-DTOY_CC_ENABLED all: - $(MAKE) -C units -k \ No newline at end of file + $(MAKE) -C units -k + +gdb: + $(MAKE) -C units -k gdb