Update README.md (#56) #159
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, ubuntu-22.04-arm, macos-latest, macos-13] | |
fail-fast: false | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: apt update | |
if: ${{ contains(matrix.os, 'ubuntu') }} | |
run: sudo apt-get update | |
- name: brew update | |
if: ${{ contains(matrix.os, 'macos') }} | |
run: brew update | |
- name: Install Eigen | |
run: ${{ contains(matrix.os, 'macos') && 'brew install eigen'|| 'sudo apt-get install libeigen3-dev' }} | |
- name: Install SDL2 | |
run: ${{ contains(matrix.os, 'macos') && 'brew install SDL2'|| 'sudo apt-get install libsdl2-dev' }} | |
- name: Install sdl-wrapper | |
run: | | |
git clone https://github.com/cornellev/sdl-wrapper.git | |
cd sdl-wrapper | |
sudo make install | |
- name: Install libcmdapp2 | |
run: | | |
git clone https://github.com/cornellev/libcmdapp2.git | |
cd libcmdapp2 | |
sudo make install | |
- name: Install libconfig | |
run: | | |
git clone https://github.com/cornellev/config | |
cd config | |
sudo make install | |
- name: Install simple-test | |
run: | | |
git clone https://github.com/cornellev/simple-test | |
cd simple-test | |
sudo make install | |
- name: Build all | |
run: make OPT=Release | |
- name: Run tests | |
run: make test OPT=Release | |
- name: Run benchmarks | |
run: DYLD_LIBRARY_PATH=/usr/local/lib make bench OPT=Release | |
- name: Test install | |
run: sudo make install |