Skip to content

Commit 274d881

Browse files
committed
fix(CI): set the Rust target to x86_64-pc-windows-gnu on Windows
1 parent 25dbcc2 commit 274d881

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Justfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
alias t := test
22

3+
cargo_build_target_opt := if os_family() == "windows" { "--target x86_64-pc-windows-gnu" } else { "" }
4+
35
test:
46
ruby -Itest test/gem_installation.rb
57
ruby -Itest -e 'Dir["test/test_*.rb"].each { |f| require File.expand_path(f) }'
@@ -8,7 +10,7 @@ bench pattern="*" write_report="console":
810
ruby test/benchmarks/run_benchmarks.rb '{{pattern}}' --write-report={{write_report}}
911

1012
build-extension:
11-
cargo build --release --manifest-path gems/codetracer-ruby-recorder/ext/native_tracer/Cargo.toml
13+
cargo build {{ cargo_build_target_opt }} --release --manifest-path gems/codetracer-ruby-recorder/ext/native_tracer/Cargo.toml
1214

1315
format-rust:
1416
cargo fmt --manifest-path gems/codetracer-ruby-recorder/ext/native_tracer/Cargo.toml

0 commit comments

Comments
 (0)