Skip to content

build(opencascade-sys): use debug builds of OpenCASCADE by default #183

build(opencascade-sys): use debug builds of OpenCASCADE by default

build(opencascade-sys): use debug builds of OpenCASCADE by default #183

Workflow file for this run

name: Build and Test
on:
pull_request:
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
toolchain: [stable]
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.toolchain == 'nightly' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/*
!target/opencascade-sys
key: cargo-${{ runner.os }}-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
- name: Cache OpenCASCADE
uses: actions/cache@v4
with:
path: |
target/opencascade-sys/
key: occt-${{ runner.os }}-${{ matrix.toolchain }}-${{ hashFiles('crates/opencascade-sys/**') }}
- name: Build
run: cargo build --verbose --workspace --all-features
- name: Run tests
run: cargo test --verbose --workspace --all-features -- --include-ignored