fix(ci): clippy clean on tests/hs.rs + pin step cwd to GITHUB_WORKSPACE
Two separate breakages from the first green-ish CI run:
1. tests/hs.rs asserted on a constant, which clippy rejects under
-D warnings (clippy::assertions_on_constants) because the compiler
folds the assert away. Compare through a runtime binding instead.
2. The release workflow built the aarch64 binary fine (13m02s, verified
ARM ELF) but the publish step died with:
/var/run/act/workflow/3: line 6: scripts/publish-release.sh: No such file or directory
run: steps execute with act's cwd, not the repo root, so relative
paths miss. Pin every run step with cd "${GITHUB_WORKSPACE}" (the
pattern the osint-dashboard workflow already relies on).
Verified locally before pushing: cargo test 41 passed, cargo clippy
--all-targets -- -D warnings clean.
This commit is contained in:
parent
7701f61c71
commit
154bed7823
3 changed files with 11 additions and 5 deletions
|
|
@ -26,6 +26,8 @@ jobs:
|
|||
- name: cargo test + clippy on aarch64
|
||||
run: |
|
||||
set -euo pipefail
|
||||
cd "${GITHUB_WORKSPACE}"
|
||||
echo "workspace: $GITHUB_WORKSPACE"
|
||||
docker volume create "$CARGO_REGISTRY_VOLUME" > /dev/null
|
||||
docker volume create "$CARGO_TARGET_VOLUME" > /dev/null
|
||||
docker rm -f "$BUILD_CONTAINER" > /dev/null 2>&1 || true
|
||||
|
|
|
|||
Loading…
Reference in a new issue