Skip to content

Commit

Permalink
Execute cargo hack for EDR crates
Browse files Browse the repository at this point in the history
  • Loading branch information
agostbiro committed May 24, 2024
1 parent 6864298 commit 560a976
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
13 changes: 13 additions & 0 deletions .github/scripts/cargo-hack-edr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -e

# Execute cargo hack only for EDR crates
for dir in crates/edr_*/ ; do
if [ -d "$dir" ]; then
pushd "$dir"
cargo hack check --feature-powerset --no-dev-deps
popd
fi
done

12 changes: 6 additions & 6 deletions .github/workflows/edr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ jobs:
- uses: taiki-e/install-action@cargo-hack

- uses: Swatinem/rust-cache@v2
# - name: Cargo hack
# uses: actions-rs/cargo@v1
# with:
# command: hack
# args: check --feature-powerset --no-dev-deps

- name: Cargo hack for EDR crates
run: |
chmod +x ./github/scripts/cargo-hack-edr.sh
./github/scripts/cargo-hack-edr.sh
shell: bash

test-edr-rs:
name: Test EDR (${{ matrix.os }})
Expand Down

0 comments on commit 560a976

Please sign in to comment.