Merge pull request #7 from lipracer/dev #54
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: C++ CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up CMake | |
run: sudo apt-get install -y cmake | |
- name: Build project | |
run: | | |
git submodule update --init --recursive | |
mkdir build | |
cd build | |
cmake .. | |
make | |
- name: Run tests | |
run: | | |
cd build | |
ctest -R | |
- name: Upload test results | |
uses: actions/upload-artifact@v2 | |
with: | |
name: test-results | |
path: build/Testing/Temporary |