Skip to content

Commit

Permalink
Install zig in CI and clear CI cache
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Dec 28, 2021
1 parent 1ebf6aa commit 4e4d254
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
python-version: "3.10.0"
- name: Install cffi and virtualenv
run: pip install cffi virtualenv
run: pip install cffi virtualenv ziglang~=0.9.0
- uses: actions-rs/toolchain@v1
id: rustup
with:
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ fn compile_target(
.to_uppercase()
.replace("-", "_");
build_command.env(format!("CARGO_TARGET_{}_LINKER", env_target), &zig_linker);
build_command.env("TARGET_CC", &zig_linker);
}

if let BridgeModel::BindingsAbi3(_, _) = bindings_crate {
Expand Down

0 comments on commit 4e4d254

Please sign in to comment.