Skip to content

Commit 792ee07

Browse files
committed
ci: fix publish
1 parent 64800b0 commit 792ee07

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/rust-ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ jobs:
6262
- name: cargo test
6363
run: cargo test --release --all-features
6464

65-
# Remove this check if you don't use cargo-deny in the repo
6665
deny-check:
6766
name: cargo-deny
6867
runs-on: ubuntu-22.04
@@ -72,19 +71,23 @@ jobs:
7271
submodules: true
7372
- uses: EmbarkStudios/cargo-deny-action@v2
7473

75-
# Remove this check if you don't publish the crate(s) from this repo
7674
publish-check:
7775
name: Publish Check
7876
runs-on: ubuntu-22.04
7977
steps:
8078
- uses: actions/checkout@v4
8179
with:
8280
submodules: true
83-
- run: cargo fetch
84-
- name: cargo publish check
85-
run: cargo publish --dry-run --manifest-path spirv-tools-sys/Cargo.toml
86-
- name: cargo publish check
87-
run: cargo publish --dry-run --manifest-path Cargo.toml
81+
- uses: cargo-bins/cargo-binstall@main
82+
- run: cargo binstall cargo-release
83+
- run: cargo fetch --locked
84+
- name: cargo release --workspace
85+
run: cargo release patch --allow-branch=*
86+
# cargo release in workspace root doesn't actually run `publish check` on any crate, do so manually
87+
- name: cargo publish check spirv-tools-sys
88+
run: cargo release patch --allow-branch=* --manifest-path spirv-tools-sys/Cargo.toml
89+
- name: cargo publish check spirv-tools
90+
run: cargo release patch --allow-branch=* --manifest-path spirv-tools/Cargo.toml
8891

8992
defaults:
9093
run:

0 commit comments

Comments
 (0)