Skip to content

Commit

Permalink
feat(ci): make release.sh executable, run checks with all targets a…
Browse files Browse the repository at this point in the history
…nd features
  • Loading branch information
t00ts committed Jan 29, 2025
1 parent 311a9c8 commit dafb304
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ doc:
cargo doc --no-deps --document-private-items

release version:
chmod +x scripts/release.sh
scripts/release.sh {{version}}

alias b := build
Expand Down
12 changes: 3 additions & 9 deletions scripts/release.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,9 @@ for crate in "${CRATES[@]}"; do
do_sed "$file" "s/pathfinder-serde = { version = \"[^\"]*\"/pathfinder-serde = { version = \"${VERSION}\"/"
done

# Update Cargo.lock
cargo_update_args=()
for crate in "${CRATES[@]}"; do
cargo_update_args+=(-p "pathfinder-${crate}")
done
cargo update "${cargo_update_args[@]}"

# Verify everything still builds
cargo check --workspace
# Update Cargo.lock and verify everything still builds
cargo check --workspace --all-targets
cargo check --workspace --all-targets --all-features

# Create and checkout new release branch
git checkout -b release/v${VERSION}
Expand Down

0 comments on commit dafb304

Please sign in to comment.