Skip to content

Commit a871939

Browse files
committed
release plz: dry-run in ci
1 parent 6bce6fe commit a871939

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

.github/workflows/rust-ci.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -93,27 +93,28 @@ jobs:
9393
submodules: true
9494
- uses: EmbarkStudios/cargo-deny-action@v2
9595

96-
publish-check:
97-
name: Publish Check
98-
runs-on: ubuntu-22.04
96+
release-plz-dry-run:
97+
name: Release-plz dry-run
98+
runs-on: ubuntu-latest
99+
permissions: {}
99100
steps:
100-
- uses: actions/checkout@v4
101+
- uses: actions/checkout@v6
101102
with:
103+
fetch-depth: 0
104+
persist-credentials: false
102105
submodules: true
103-
- uses: cargo-bins/cargo-binstall@main
104-
- run: cargo binstall cargo-release
105-
- run: cargo fetch --locked
106-
# cargo release in workspace root doesn't actually run `publish check` on any crate, do so manually
107-
- name: cargo publish check spirv-tools-sys
108-
run: cargo release patch --allow-branch=* --manifest-path spirv-tools-sys/Cargo.toml
109-
- name: cargo publish check spirv-tools
110-
run: cargo release patch --allow-branch=* --manifest-path spirv-tools/Cargo.toml
106+
- name: Run release-plz
107+
uses: release-plz/action@v0.5
108+
with:
109+
dry_run: true
110+
env:
111+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111112

112113
# This allows us to have a single job we can branch protect on, rather than needing
113114
# to update the branch protection rules when the test matrix changes
114115
test_success:
115116
runs-on: ubuntu-24.04
116-
needs: [lint, test, deny-check, publish-check]
117+
needs: [lint, test, deny-check, release-plz-dry-run]
117118
# Hack for buggy GitHub Actions behavior with skipped checks: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks
118119
if: ${{ always() }}
119120
steps:
@@ -123,7 +124,7 @@ jobs:
123124
[[ "${{ needs.lint.result }}" == "success" ]] || exit 1
124125
[[ "${{ needs.test.result }}" == "success" ]] || exit 1
125126
[[ "${{ needs.deny-check.result }}" == "success" ]] || exit 1
126-
[[ "${{ needs.publish-check.result }}" == "success" ]] || exit 1
127+
[[ "${{ needs.release-plz-dry-run.result }}" == "success" ]] || exit 1
127128
128129
defaults:
129130
run:

0 commit comments

Comments
 (0)