Skip to content

Commit

Permalink
Specify AVX2 toolchains for Github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
spinicist committed Mar 4, 2021
1 parent f889748 commit 6bd2233
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,14 @@ jobs:
CC: ${{matrix.config.cc}}
CXX: ${{matrix.config.cxx}}
run: |
if [ "${{runner.os}}" == "macOS" ]; then
TC="${{github.workspace}}/cmake/x64-osx-avx2.toolchain.cmake"
else
TC="${{github.workspace}}/cmake/x64-linux-avx2.toolchain.cmake"
fi
cmake -B ${{github.workspace}}/build -S ${{github.workspace}} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/cmake/vcpkg/scripts/buildsystems/vcpkg.cmake
-DCMAKE_TOOLCHAIN_FILE="$TC"
cmake --build ${{github.workspace}}/build
- name: Tests
Expand Down

0 comments on commit 6bd2233

Please sign in to comment.