Skip to content

Commit

Permalink
ci: add build check to fail on warnings (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
TanvirDeol authored Jan 28, 2025
1 parent 8c31f8e commit af05c6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
uses: useblacksmith/rust-cache@v3.0.1
with:
shared-key: "cache-compilation"

- name: Run build
run: RUSTFLAGS="-D warnings" cargo build --locked --release
env:
RUST_BACKTRACE: 1

- name: Build wasm release
run: cargo wasm
2 changes: 1 addition & 1 deletion contracts/stellar-upgrader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern crate alloc;

pub mod error;

mod interface;
pub mod interface;

#[cfg(test)]
mod tests;
Expand Down

0 comments on commit af05c6f

Please sign in to comment.