2020-04-19 14:04:04 +02:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-06-28 11:02:48 +02:00
|
|
|
branches: [ master, release/v8.* ]
|
2020-04-19 14:04:04 +02:00
|
|
|
pull_request:
|
2021-06-28 11:02:48 +02:00
|
|
|
branches: [ master, release/v8.* ]
|
2020-04-19 14:04:04 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-09-01 02:58:14 -07:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# A valid option parameter to the cmake file.
|
|
|
|
# See BUILD_OPTIONS in tests/CMakeLists.txt.
|
|
|
|
build_option: ['OPTIONS_MINIMAL_MONOCHROME',
|
|
|
|
'OPTIONS_NORMAL_8BIT',
|
|
|
|
'OPTIONS_16BIT',
|
|
|
|
'OPTIONS_16BIT_SWAP',
|
|
|
|
'OPTIONS_FULL_32BIT']
|
|
|
|
name: Build ${{ matrix.build_option }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: ammaraskar/gcc-problem-matcher@master
|
|
|
|
- name: Install prerequisites
|
|
|
|
run: scripts/install-prerequisites.sh
|
|
|
|
- name: Building ${{ matrix.build_option }}
|
|
|
|
run: python tests/main.py --build-option=${{ matrix.build_option }} build
|
2020-04-19 14:04:04 +02:00
|
|
|
|
2021-09-01 02:58:14 -07:00
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Executable Tests
|
2020-04-19 14:04:04 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-02-15 14:47:24 -05:00
|
|
|
- uses: ammaraskar/gcc-problem-matcher@master
|
2021-08-27 15:57:46 -07:00
|
|
|
- name: Install prerequisites
|
|
|
|
run: scripts/install-prerequisites.sh
|
2020-04-19 14:04:04 +02:00
|
|
|
- name: Run tests
|
2021-09-01 02:58:14 -07:00
|
|
|
run: python tests/main.py --report test
|
2021-07-05 13:58:46 -04:00
|
|
|
- name: Upload coverage to Codecov
|
|
|
|
uses: codecov/codecov-action@v1
|
2021-07-08 09:42:37 -04:00
|
|
|
if: github.event_name == 'push'
|
2021-07-05 13:58:46 -04:00
|
|
|
with:
|
|
|
|
fail_ci_if_error: true
|
2021-09-01 02:58:14 -07:00
|
|
|
verbose: true
|