Skip to content

Commit

Permalink
Install Kani's runtime dependencies and fix Rust CI
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval committed Jun 11, 2024
1 parent f7269e2 commit 8d18976
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/kani.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
matrix:
# Kani does not support windows.
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-latest
base: ubuntu
- os: macos-latest
base: macos
steps:
- name: Checkout Library
uses: actions/checkout@v4
Expand All @@ -41,6 +46,11 @@ jobs:
path: kani
ref: features/verify-rust-std

- name: Setup Dependencies
working-directory: kani
run: |
./scripts/setup/${{ matrix.base }}/install_deps.sh
- name: Build `Kani`
working-directory: kani
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/rustc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
- name: Run tests
working-directory: upstream
env:
# Avoid error due to unexpected `cfg`
RUSTFLAGS: "--check-cfg=cfg(kani_host,kani)"
run: |
./configure --set=llvm.download-ci-llvm=true
./x test --stage 0 library/std
4 changes: 1 addition & 3 deletions library/contracts/safety/src/runtime.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use proc_macro::{TokenStream};
use quote::{quote, format_ident};
use syn::{ItemFn, parse_macro_input};
use proc_macro::TokenStream;

/// For now, runtime requires is a no-op.
///
Expand Down

0 comments on commit 8d18976

Please sign in to comment.