Skip to content

Commit

Permalink
[ci] Extend OS testing matrix
Browse files Browse the repository at this point in the history
Partially address oneapi-src#457 by adding Ubuntu 20.04 and Windows Server 2019 to
the testing matrix. These are the low hanging fruit, beyond these
additions we'll need to use container images.
  • Loading branch information
kbenzie committed May 1, 2023
1 parent e9eaac9 commit 1d5eacf
Showing 1 changed file with 29 additions and 13 deletions.
42 changes: 29 additions & 13 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,28 @@ env:
jobs:
ubuntu-build:
name: Build - Ubuntu
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [ {cxx: g++, c: gcc}, {cxx: clang++, c: clang} ]
config:
- {os: ubuntu-20.04, compiler: {c: gcc, cxx: g++}}
- {os: ubuntu-22.04, compiler: {c: gcc, cxx: g++}}
- {os: ubuntu-22.04, compiler: {c: clang, cxx: clang++}}
runs-on: ${{matrix.config.os}}

steps:
- uses: actions/checkout@v3

- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y doxygen ${{matrix.compiler.c}}
- name: Install pip packages
run: pip install -r third_party/requirements.txt

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -D CMAKE_C_COMPILER=${{matrix.compiler.c}} -D CMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} -DUR_ENABLE_TRACING=ON -DUR_DEVELOPER_MODE=ON -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUR_BUILD_TESTS=ON -DUR_FORMAT_CPP_STYLE=ON
run: >
cmake
-B${{github.workspace}}/build
-DCMAKE_C_COMPILER=${{matrix.config.compiler.c}}
-DCMAKE_CXX_COMPILER=${{matrix.config.compiler.cxx}}
-DUR_ENABLE_TRACING=ON
-DUR_DEVELOPER_MODE=ON
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DUR_BUILD_TESTS=ON
-DUR_FORMAT_CPP_STYLE=ON
- name: Generate source from spec, check for uncommitted diff
run: cmake --build ${{github.workspace}}/build --target check-generated
Expand All @@ -39,7 +43,12 @@ jobs:

windows-build:
name: Build - Windows
runs-on: windows-latest
strategy:
matrix:
config:
- {os: 'windows-2019'}
- {os: 'windows-2022'}
runs-on: ${{matrix.config.os}}

steps:
- uses: actions/checkout@v3
Expand All @@ -52,7 +61,14 @@ jobs:
run: python3 -m pip install -r third_party/requirements.txt

- name: Configure CMake
run: cmake -DCMAKE_POLICY_DEFAULT_CMP0094=NEW -DUR_ENABLE_TRACING=ON -DUR_DEVELOPER_MODE=ON -DUR_BUILD_TESTS=ON -B ${{github.workspace}}/build -DUR_FORMAT_CPP_STYLE=ON
run: >
cmake
-B${{github.workspace}}/build
-DCMAKE_POLICY_DEFAULT_CMP0094=NEW
-DUR_ENABLE_TRACING=ON
-DUR_DEVELOPER_MODE=ON
-DUR_BUILD_TESTS=ON
-DUR_FORMAT_CPP_STYLE=ON
- name: Generate source from spec, check for uncommitted diff
run: cmake --build ${{github.workspace}}/build --target check-generated --config ${{env.BUILD_TYPE}}
Expand Down

0 comments on commit 1d5eacf

Please sign in to comment.