added git CI workflow for cunit tests #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CUnit Test Runner | |
on: [push, pull_request] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake sdl2 cunit | |
- name: Create Build Directory | |
run: mkdir build | |
- name: CMake Configure | |
working-directory: build | |
run: cmake .. | |
- name: CMake Build | |
working-directory: build | |
run: cmake --build . | |
- name: Run tests | |
working-directory: build/tests | |
run: ./z80_tests |