Skip to content

Commit a35ad17

Browse files
committed
Extract publish-dry-run job
Because the job fails when C API is changed.
1 parent ab0b5e9 commit a35ad17

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/rust.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,26 @@ jobs:
4141
run: |
4242
cd rust
4343
cargo test --verbose
44+
45+
publish-dry-run:
46+
name: cargo:publish-dry-run
47+
runs-on: ubuntu-latest
48+
continue-on-error: true
49+
steps:
50+
- uses: actions/checkout@v6
51+
- name: Install Rust tools
52+
run: |
53+
rustup update --no-self-update stable
54+
rustup default stable
55+
- uses: actions/cache@v5
56+
with:
57+
path: |
58+
~/.cargo/registry
59+
~/.cargo/git
60+
rust/target
61+
key: ${{ runner.os }}-cargo-${{ hashFiles('rust/Cargo.lock') }}
62+
restore-keys: |
63+
${{ runner.os }}-cargo-
4464
- name: Test publish crates
4565
run: |
4666
cd rust

0 commit comments

Comments
 (0)