Skip to content

chore: release

chore: release #505

Workflow file for this run

name: C-API
on:
push:
branches: [ "main", "next-major" ]
pull_request:
branches: [ "main", "next-major" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-test:
name: Build and test
strategy:
matrix:
os: [ubuntu-22.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: "build-test"
- name: Install latest nextest release
uses: taiki-e/install-action@nextest
- name: Cargo build
run: cargo build -p rustsat-capi --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
- name: Run tests
run: cargo nextest run --profile ci -p rustsat-capi --verbose
env:
CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}
version:
name: Ensure C-API crate version is in sync
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Check
run: "[ \"$(grep '^version = ' Cargo.toml)\" = \"$(grep '^version = ' capi/Cargo.toml)\" ]"
cbindgen:
name: Test generated C header
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- name: Check C header
run: |
cargo install cbindgen
scripts/verify-c-header.sh