Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,19 @@ jobs:
cargo hack --each-feature --keep-going \
build --target=${{ matrix.target }} --release

check-release-script:
name: check release script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: compute libpathrs crate version
run: |-
CRATE_VERSION="$(cargo metadata --no-deps --format-version=1 | jq -rM '.packages[] | select(.name == "pathrs") | .version')"
echo "CRATE_VERSION=$CRATE_VERSION" >>"$GITHUB_ENV"
- run: ./hack/release.sh
- run: tar tvf ./release/${CRATE_VERSION}/libpathrs-${CRATE_VERSION}.tar.xz
- run: tar tvf ./release/${CRATE_VERSION}/libpathrs.vendor.tar.zst

fmt:
name: rustfmt
runs-on: ubuntu-latest
Expand Down Expand Up @@ -636,6 +649,7 @@ jobs:
- check
- check-msrv
- check-cross
- check-release-script
- fmt
- clippy
- check-lint-nohack
Expand Down
3 changes: 2 additions & 1 deletion hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ rm -rf "$outputdir" && mkdir -p "$outputdir"
#done

# Generate vendor.tar.zst.
generate_vendor - | zstd -11 >"$outputdir/$project.vendor.tar.zst"
generate_vendor "$outputdir/$project.vendor.tar"
zstd -11 --rm "$outputdir/$project.vendor.tar" -o "$outputdir/$project.vendor.tar.zst"

# Generate new archive.
git archive --format=tar --prefix="$project-$version/" "$commit" | xz > "$outputdir/$project-$version.tar.xz"
Expand Down
Loading