cbindgen #421
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cbindgen | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
rustfmt-clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install stable | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: "clippy, rustfmt" | |
- name: Run rustfmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: -- --check | |
- name: Run clippy | |
run: | | |
cargo clippy --workspace -- -D warnings | |
- name: Install minimum supported Rust version | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: 1.54.0 | |
- name: Build with minimum supported Rust version | |
run: | | |
cargo +1.54.0 test nonexistent-test --verbose | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8.*' | |
- name: Install Cython | |
run: | | |
python -m pip install --upgrade pip wheel | |
pip install Cython==0.29.* | |
- name: Build | |
run: | | |
cargo build --verbose | |
- name: Build no-default-features | |
run: | | |
cargo build --verbose --no-default-features | |
- name: Test | |
env: | |
CBINDGEN_TEST_VERIFY: 1 | |
run: | | |
cargo test --verbose | |
- name: Test package | |
env: | |
CBINDGEN_TEST_VERIFY: 1 | |
run: | | |
cargo package --verbose | |
(cd target/package/cbindgen-$(cargo run -- --version | cut -d ' ' -f 2) && cargo test --verbose) | |
- name: Test minimal-versions | |
run: | | |
cargo update -Zminimal-versions | |
cargo test |