Skip to content

Commit

Permalink
Fix win32 build by specifying Rust_CARGO_TARGET and Rust_TOOLCHAIN ex…
Browse files Browse the repository at this point in the history
…plicitly.
  • Loading branch information
hoehermann committed Dec 4, 2024
1 parent 5f7a554 commit a096401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# NOTE: Ninja does not support specifying an architecture, so I am going with the default which seems to be MSBuild
# NOTE: CMAKE_GENERATOR_PLATFORM must take WIN32, not x86 because consistency (thanks to https://stackoverflow.com/questions/28350214/#comment121308920_52846043 and https://github.com/microsoft/vcpkg/issues/15465)
- name: Configure
run: cmake -DCMAKE_GENERATOR_PLATFORM=WIN32 -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x86-windows-static -DVCPKG_MANIFEST_MODE=OFF -DCMAKE_BUILD_TYPE=Release -S . -B build
run: cmake -DCMAKE_GENERATOR_PLATFORM=WIN32 -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x86-windows-static -DVCPKG_MANIFEST_MODE=OFF -DCMAKE_BUILD_TYPE=Release -DRust_CARGO_TARGET="i686-pc-windows-msvc" -DRust_TOOLCHAIN="stable-i686-pc-windows-msvc" -S . -B build

- name: Build
run: cmake --build build --config Release
Expand Down

0 comments on commit a096401

Please sign in to comment.