Merge pull request #299 from conjure-cp/dependabot/pip/tools/essence-… #27
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: "conjure-oxide" | |
on: | |
push: | |
branches: | |
- main # run for pushes to the main branch. other branches need to create a PR if they want testing. | |
paths: | |
- conjure_oxide/** | |
- solvers/** | |
- crates/** | |
- Cargo.* | |
- .github/workflows/test.yml | |
- .github/workflows/code-coverage-deploy.yml | |
pull_request: | |
paths: | |
- conjure_oxide/** | |
- solvers/** | |
- crates/** | |
- Cargo.* | |
- .github/workflows/test.yml | |
- .github/workflows/code-coverage-deploy.yml | |
workflow_dispatch: | |
env: | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: "sccache" | |
SCCACHE_GHA_VERSION: 2 | |
jobs: | |
build-and-test: | |
name: "Build and Test" | |
strategy: | |
# run all combinations of the matrix even if one combination fails. | |
fail-fast: false | |
matrix: | |
rust_release: | |
- stable | |
- nightly | |
conjure_version: | |
- 2.5.1 | |
os: | |
- ubuntu-latest | |
- macos-latest | |
include: | |
- os: ubuntu-latest | |
release_suffix: linux | |
- os: macos-latest | |
release_suffix: macos-intel | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run sccache-cache | |
uses: mozilla-actions/sccache-action@v0.0.3 | |
- run: rustup update ${{ matrix.rust_release }} && rustup default ${{ matrix.rust_release }} | |
- run: cargo build -vv --workspace | |
- uses: ./.github/actions/install-conjure | |
with: | |
os_arch: ${{ matrix.release_suffix }} | |
version: ${{ matrix.conjure_version }} | |
- run: cargo test --workspace | |
audit: | |
name: "Dependency Audit" | |
runs-on: ubuntu-latest | |
strategy: | |
# run all combinations of the matrix even if one combination fails. | |
fail-fast: false | |
matrix: | |
rust_release: | |
- stable | |
- nightly | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup update ${{ matrix.rust_release }} && rustup default ${{ matrix.rust_release }} | |
- run: cargo audit |