Skip to content

Commit

Permalink
Merge pull request #16 from Garcia6l20/add_github_actions
Browse files Browse the repository at this point in the history
add MSVC 2019 x64 build
  • Loading branch information
andreasbuhr authored Oct 24, 2020
2 parents e9de1b8 + 26a57b4 commit 76fae81
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
cxx_flags: -stdlib=libc++,
exe_linker_flags: -lc++,
}
- {
name: "Windows MSVC 2019 (x64)",
os: windows-latest,
cxx: "cl",
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
}

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -89,9 +95,13 @@ jobs:
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: |
# run environment setup script if any
[ -n "${{ matrix.config.environment_script }}" ] && "${{ matrix.config.environment_script }}"
cmake $GITHUB_WORKSPACE \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DCMAKE_CXX_STANDARD=20 \
-DBUILD_TESTING=ON \
-DCMAKE_CXX_FLAGS=${{ matrix.config.cxx_flags }} \
-DCMAKE_EXE_LINKER_FLAGS=${{ matrix.config.exe_linker_flags }} \
-DCMAKE_VERBOSE_MAKEFILE=ON
Expand Down

0 comments on commit 76fae81

Please sign in to comment.