update readme #11
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 libsdl2-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev libcunit1 libcunit1-doc libcunit1-dev | |
- 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 |