Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed Feb 26, 2024
1 parent 2708c0a commit 17a0358
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ function watchStatic() {

function buildRust(done) {
const targetOption =
process.env.PACK_ARCH === "ia32" ? "--target i686-pc-windows-gnu" : "";
process.env.PACK_ARCH === "ia32" ?
(process.env.GITHUB_WORKFLOW ? // Use msvc with github actions
"--target i686-pc-windows-msvc" :
"--target i686-pc-windows-gnu")
: "";
const releaseOption = config.isRelease ? "--release" : "";
execute(
`npx cargo-cp-artifact -a cdylib fp-rust ./build/back/fp-rust.node -- cargo build ${targetOption} ${releaseOption} --message-format=json-render-diagnostics`,
Expand Down

0 comments on commit 17a0358

Please sign in to comment.