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 mozilla#841.
  • Loading branch information
jschwe committed Jun 5, 2023
1 parent e9e88b0 commit 15b5aad
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Build cbindgen
run: |
cargo build --release
- name: semver
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-toolchain: stable

- name: Strip cbindgen
run: |
strip target/release/cbindgen
- name: Build cbindgen
run: |
cargo build --release
- name: Strip cbindgen
run: |
strip target/release/cbindgen
- name: Handle release data and files
- name: Handle release data and files
id: tagName
run: |
VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)
Expand Down

0 comments on commit 15b5aad

Please sign in to comment.