Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check semver compatibility in CI #240

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,43 @@ jobs:
target: x86_64-unknown-netbsd
toolchain: "1.59.0"

# --------------------------------------------------------------------------
# Semantic Versioning
#
# Check at least once per platform as we heavily depend on platform-specific
# code. The feature groups are used for attempting to cover different
# backends for a platform (like Linux with and without libudev).

semver-aarch64-apple-darwin:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- aarch64-apple-darwin
- arm-linux-androideabi
- x86_64-pc-windows-msvc
- x86_64-unknown-freebsd
- x86_64-unknown-linux-gnu
- x86_64-unknown-netbsd
feature-group:
- "only-explicit-features"
- "all-features"
steps:
- run: |
# TODO: Harmonize with build.yaml
sudo sed -i 's/azure.archive.ubuntu.com/archive.ubuntu.com/' /etc/apt/sources.list
sudo apt-get -qq update
sudo apt-get -qq -y install build-essential curl git pkg-config libudev-dev
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- uses: obi1kenobi/cargo-semver-checks-action@v2
with:
rust-target: ${{ matrix.target }}
feature-group: ${{ matrix.feature-group }}

# --------------------------------------------------------------------------
# cargo-deny

Expand Down
Loading