Skip to content

Prepare new release #440

Prepare new release

Prepare new release #440

Workflow file for this run

name: cbindgen
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
rustfmt-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy, rustfmt
- name: Run rustfmt
run: |
cargo fmt --check
- name: Run clippy
run: |
cargo clippy --workspace -- -D warnings
- name: Install minimum supported Rust version
id: msrv
uses: actions-rs/toolchain@v1
with:
toolchain: 1.57
override: true
- name: Build with minimum supported Rust version
run: |
cargo test nonexistent-test --verbose
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install Python
uses: actions/setup-python@v4
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 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: Install nightly Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: Test
env:
CBINDGEN_TEST_VERIFY: 1
run: |
cargo +nightly test --verbose
- name: Test minimal-versions
run: |
cargo +nightly update -Zminimal-versions
cargo +nightly test