2024-10-11 19:26:37 -05:00
|
|
|
name: Compiler Integration Tests
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
2024-10-14 09:54:12 -05:00
|
|
|
|
|
|
|
# TODO (@carsonradtke)
|
|
|
|
# - [ ] Xcode
|
|
|
|
# - [ ] VS_LLVM
|
2024-10-14 10:01:23 -05:00
|
|
|
# - [ ] Update README with latest versions actively tested
|
|
|
|
# - [ ] Do not use '*-latest' for runs-on
|
2024-10-14 09:54:12 -05:00
|
|
|
|
|
|
|
gcc:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-10-14 09:58:08 -05:00
|
|
|
cxx_version: [ 17 ] # 14, 17, 20
|
|
|
|
build_type: [ 'Debug'] # 'Debug', 'Release'
|
|
|
|
gcc_version: [ 12 ] # 12, 13, 14
|
2024-10-14 09:54:12 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: create build directory
|
|
|
|
run: mkdir build
|
|
|
|
|
|
|
|
- name: cmake configure
|
|
|
|
working-directory: build
|
2024-10-14 10:01:23 -05:00
|
|
|
run: cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DGSL_CXX_STANDARD=${{ matrix.cxx_version }} -DCI_TESTING:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Werror=dev -DCMAKE_CXX_COMPILER=g++-${{ matrix.gcc_version }} ..
|
2024-10-14 09:54:12 -05:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
working-directory: build
|
|
|
|
run: make
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
working-directory: build
|
|
|
|
run: make test
|
|
|
|
|
|
|
|
clang:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-10-14 09:58:08 -05:00
|
|
|
cxx_version: [ 17 ] # 14, 17, 20
|
|
|
|
build_type: [ 'Debug' ] # 'Debug', 'Release'
|
|
|
|
clang_version: [ 16 ] # 16, 17, 18
|
2024-10-14 09:54:12 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: create build directory
|
|
|
|
run: mkdir build
|
|
|
|
|
|
|
|
- name: cmake configure
|
|
|
|
working-directory: build
|
2024-10-14 10:01:23 -05:00
|
|
|
run: cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DGSL_CXX_STANDARD=${{ matrix.cxx_version }} -DCI_TESTING:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Werror=dev -DCMAKE_CXX_COMPILER=clang++-${{ matrix.clang_version }} ..
|
2024-10-14 09:54:12 -05:00
|
|
|
|
|
|
|
- name: build
|
|
|
|
working-directory: build
|
|
|
|
run: make
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
working-directory: build
|
|
|
|
run: make test
|
|
|
|
|
2024-10-11 19:26:37 -05:00
|
|
|
VS_MSVC:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-10-14 09:58:08 -05:00
|
|
|
cxx_version: [ 17 ] # 14, 17, 20
|
2024-10-14 10:01:23 -05:00
|
|
|
generator: [ "Visual Studio 17 2022" ] # "Visual Studio 16 2019", "Visual Studio 17 2022"
|
2024-10-14 09:58:08 -05:00
|
|
|
build_type: [ 'Debug' ] # 'Debug', 'Release'
|
2024-10-14 09:54:12 -05:00
|
|
|
runs-on: windows-latest
|
2024-10-11 19:26:37 -05:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-10-11 19:32:00 -05:00
|
|
|
- uses: microsoft/setup-msbuild@v1
|
2024-10-11 19:26:37 -05:00
|
|
|
|
|
|
|
- name: create build directory
|
|
|
|
run: mkdir build
|
|
|
|
|
|
|
|
- name: cmake configure
|
|
|
|
working-directory: build
|
|
|
|
run: cmake -G "${{ matrix.generator }}" -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DGSL_CXX_STANDARD=${{ matrix.cxx_version }} -DCI_TESTING:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Werror=dev ..
|
|
|
|
|
|
|
|
- name: build
|
|
|
|
working-directory: build
|
|
|
|
run: msbuild GSL.sln
|
|
|
|
|
|
|
|
- name: test
|
|
|
|
working-directory: build
|
|
|
|
run: ctest . --output-on-failure --no-compress-output
|
|
|
|
|