move to 1es #36
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 Linux/GCC | |
on: | |
push: | |
pull_request: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
coverage: | |
runs-on: | |
- self-hosted | |
- 1ES.Pool=MC-Runner-1ES-Linux | |
steps: | |
- name: Install LCOV | |
run: sudo apt install -y lcov | |
- uses: actions/checkout@v2 | |
- name: Build project | |
run: | | |
cd build | |
make coverage | |
- name: Run tests | |
run: | | |
cd build | |
./fakeit_tests.exe | |
- name: Generate report | |
run: | | |
cd build | |
gcov *.o | |
lcov --directory . -c -o report.info | |
lcov --remove report.info '/usr/*' '*/tests/*' -o report_filtered.info | |
- name: Upload report | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./build/report_filtered.info | |
gcc-ubuntu-20-04: | |
runs-on: | |
- self-hosted | |
- 1ES.Pool=MC-Runner-1ES-Linux | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build project | |
run: | | |
cd build | |
make all | |
- name: Run tests | |
run: | | |
cd build | |
./fakeit_tests.exe | |
gcc-ubuntu-18-04: | |
runs-on: | |
- self-hosted | |
- 1ES.Pool=MC-Runner-1ES-Linux | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build project | |
run: | | |
cd build | |
make all | |
- name: Run tests | |
run: | | |
cd build | |
./fakeit_tests.exe |