Skip to content

Commit 338278a

Browse files
add publish scanning test case
1 parent f2193e6 commit 338278a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/rust.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,21 @@ jobs:
6868
- name: Build
6969
run: cargo build ${{ matrix.release.flag }} --verbose ${{ matrix.features.args }}
7070
- name: Run tests
71-
run: cargo test ${{ matrix.release.flag }} --all ${{ matrix.features.args }}
71+
run: cargo test ${{ matrix.release.flag }} --all ${{ matrix.features.args }}
72+
73+
publish-scan:
74+
runs-on: ubuntu-latest
75+
name: publish-scan
76+
defaults:
77+
run:
78+
shell: bash
79+
steps:
80+
- uses: actions-rs/toolchain@v1
81+
with:
82+
toolchain: stable
83+
- name: Checkout
84+
uses: actions/checkout@v4
85+
- name: update dependency
86+
run: sudo apt-get update -y && sudo apt-get --reinstall install -y libc6-dev
87+
- name: Dry-run workspace publish
88+
run: cargo publish --workspace --exclude xtask --dry-run

0 commit comments

Comments
 (0)