Skip to content

Commit

Permalink
Merge pull request google#265 from j2kun:rust-ci
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 583458709
  • Loading branch information
copybara-github committed Nov 17, 2023
2 parents bdd7c4b + f85af03 commit 74e7a57
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@ jobs:
- name: "Run `bazel test`"
run: |
bazel test -c fastbuild //...
# Tests specifically for the tfhe-rs codegen
- name: rustup toolchain install
uses: dtolnay/rust-toolchain@439cf607258077187679211f12aa6f19af4a0af7 # [email protected]
with:
toolchain: stable

- name: Test rust codegen targets
run: |
bash .github/workflows/run_rust_tests.sh
6 changes: 6 additions & 0 deletions .github/workflows/run_rust_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -eux
set -o pipefail

bazel query "filter('.mlir.test$', //tests/tfhe_rust/end_to_end/...)" | xargs bazel test --sandbox_writable_path=$HOME/.cargo "$@"

0 comments on commit 74e7a57

Please sign in to comment.