Skip to content

Commit

Permalink
remove public-api from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqvq committed Sep 19, 2022
1 parent 5550248 commit aa215c8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 490 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- main
- ci1
env:
CARGO_TERM_COLOR: always
# Disable incremental compilation.
Expand Down
25 changes: 1 addition & 24 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,27 +90,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1

check-public-api-changes:
runs-on: ubuntu-latest
steps:
# Full git history needed
- uses: actions/checkout@v2
with:
fetch-depth: 0

# Install nightly (stable is already installed)
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2022-08-15
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
# Install and run cargo public-api and deny any API diff
- run: cargo install cargo-public-api@0.14.0
- run: |
diff -u public-api.txt <(cargo +nightly-2022-08-15 public-api) ||
(echo '\nFAIL: Public API changed! To bless, `git commit` the result of `cargo +nightly-2022-08-15 public-api > public-api.txt`' && exit 1)
- uses: EmbarkStudios/cargo-deny-action@v1

0 comments on commit aa215c8

Please sign in to comment.