diff options
author | Daniel McCarney <daniel@binaryparadox.net> | 2023-07-11 10:43:38 -0400 |
---|---|---|
committer | Daniel McCarney <daniel@binaryparadox.net> | 2023-07-11 16:14:26 +0000 |
commit | 478a895cf010e08bb4028c1b535ee653e3988a8f (patch) | |
tree | 4dd20c9bdec0a72931ab28df129298a5706f27d0 /.github | |
parent | 0381e5a455e8cc7e64c6987e4d76daeeaaacce60 (diff) |
ci: add a cargo-semver-checks action.
This commit updates the `build.yml` GitHub actions workflow to
additionally include a step that checks semver compatibility w/
cargo-semver-checks[0].
Notably this check passing is necessary but not sufficient for knowing
that we're maintaining semver: if this tool produces a finding we know
we aren't matching semver, but if it doesn't, we may still be breaking
semver in a way the tool can't detect.
[0]: https://github.com/obi1kenobi/cargo-semver-checks
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cdb65868..774d04e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -234,6 +234,18 @@ jobs: uses: taiki-e/install-action@cross - run: cross build --target i686-unknown-linux-gnu + semver: + name: Check semver compatibility + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Check semver + uses: obi1kenobi/cargo-semver-checks-action@v2 + format: name: Format runs-on: ubuntu-latest |