Skip to content

Commit

Permalink
fix: check crates individually (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
LesnyRumcajs authored Oct 8, 2024
1 parent b9aa30d commit d2e480f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: "./go_compat/go.mod"
- run: make check
env:
CC: "sccache clang"
CXX: "sccache clang++"
- name: Build
run: cargo check --workspace --all-features --all-targets
env:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ members = [
resolver = "2"

[workspace.package]
version = "17.0.1"
version = "17.0.2"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ChainSafe/fil-actor-states"
authors = [
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ install-lint-tools:
# Lints with everything we have in our CI arsenal
lint-all: lint audit udeps

check:
bash check_crates.sh

audit:
cargo audit

Expand Down
23 changes: 23 additions & 0 deletions check_crates.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
# Checks if all crates compile fine individually

set -euxo pipefail

function check_crate {
pushd "$1" > /dev/null
cargo check
cargo test --no-run
popd > /dev/null
}

for actor in actors/*; do
if [ -d "$actor" ]; then
check_crate "$actor"
fi
done

others=(fil_actor_interface fil_actors_shared)
for other in "${others[@]}"; do
check_crate "$other"
done

2 changes: 2 additions & 0 deletions fil_actors_shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ integer-encoding = { workspace = true }
itertools = { workspace = true }
lazy_static = { workspace = true }
multihash = { workspace = true }
num = { workspace = true }
num-bigint = { workspace = true }
num-derive = { workspace = true }
num-traits = { workspace = true }
paste = { workspace = true }
Expand Down

0 comments on commit d2e480f

Please sign in to comment.