Skip to content

Commit

Permalink
change to specify windows server 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathemalsky committed Mar 5, 2022
1 parent c5269d5 commit c64295d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
needs: [preparation]
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-2019]
flags: ["", "-msse4", "-mavx2"]

runs-on: ${{ matrix.os }}
Expand All @@ -68,7 +68,7 @@ jobs:
- name: configure CMake windows
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
if: matrix.os == 'windows-latest'
if: matrix.os == 'windows-2019'
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G "MSYS Makefiles" -DCMAKE_CXX_COMPILER="C:/msys64/mingw64/bin/clang.exe" -DCMAKE_C_COMPILER="C:/msys64/mingw64/bin/clang.exe" -DCMAKE_CXX_FLAGS=${{matrix.flags}} -DCIBuild=ON

- name: Build
Expand All @@ -90,7 +90,7 @@ jobs:

# upload all files to GitHub
- name: upload windows release
if: (github.ref == 'refs/heads/master') && (matrix.os == 'windows-latest')
if: (github.ref == 'refs/heads/master') && (matrix.os == 'windows-2019')
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down

0 comments on commit c64295d

Please sign in to comment.