Skip to content

Commit

Permalink
convert vs_msvc test to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonRadtke committed Oct 12, 2024
1 parent b206bd1 commit deec983
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/compilers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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:
VS_MSVC:
strategy:
matrix:
image: [ windows-2022 ]
generator: [ "Visual Studio 17 2022" ]
cxx_version: [ 20 ]
build_type: [ 'Debug', 'Release' ]
runs-on: ${{ matrix.image }}
steps:
- uses: actions/checkout@v4

- 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

# TODO (@carsonradtke)
# - [ ] GCC
# - [ ] Clang
# - [ ] Xcode
# - [ ] VS_LLVM
# - [ ] delete azure-pipelines.yml
# - [ ] delete pipelines/

0 comments on commit deec983

Please sign in to comment.