Skip to content

Commit

Permalink
Build the adapter in CI, and fail on warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottt committed Jun 28, 2024
1 parent 950f756 commit ba3a765
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
- name: test
run: make ci
shell: bash
- name: adapter
run: cargo build --release -p viceroy-component-adapter --target wasm32-unknown-unknown

# Run the trap test in an isolated job. It needs different cargo features than the usual build, so
# it entails rebuilding the whole workspace if we combine them in a single job. This way, we
Expand Down
3 changes: 3 additions & 0 deletions crates/adapter/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Promote warnings into errors, when building in release mode.
#![cfg_attr(not(debug_assertions), deny(warnings))]

use crate::bindings::wasi::clocks::{monotonic_clock, wall_clock};
use crate::bindings::wasi::io::poll;
use crate::bindings::wasi::io::streams;
Expand Down

0 comments on commit ba3a765

Please sign in to comment.