Skip to content

Commit

Permalink
CI: Add semver checks to CI deploy job
Browse files Browse the repository at this point in the history
This will fail creating a new github release, if the semver
action fails.
This would have caught #841.
  • Loading branch information
jschwe authored and emilio committed Aug 25, 2023
1 parent b61aa2c commit f61946b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Expand Up @@ -8,6 +8,11 @@ on:
jobs:

linux-binaries:
permissions:
# Grant the GITHUB_TOKEN additional permissions necessary for creating a release.
# We only run this action for tags, so any code has already been reviewed by
# someone with permissions to create a tag.
contents: write

runs-on: ubuntu-latest

Expand All @@ -17,6 +22,11 @@ jobs:
- name: Install stable
uses: dtolnay/rust-toolchain@stable

- name: semver
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-toolchain: stable

- name: Build cbindgen
run: |
cargo build --release
Expand Down

0 comments on commit f61946b

Please sign in to comment.