name: CI MacOS
on:
workflow_dispatch:
push:
branches: [ main, devel ]
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
branches: [ main, devel ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build_and_test:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
name: "Main tests"
runs-on: macos-latest
env:
PKG_CONFIG_PATH: /opt/homebrew/lib/pkgconfig
strategy:
matrix:
toolchain:
- stable
feature:
- serial
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install macfuse
- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v2
with:
shared-key: macos-${{ matrix.toolchain }}-${{ matrix.feature }}
- name: Run tests (Skip Execution)
run: cargo test --no-run --no-default-features --features "${{ matrix.feature }} libfuse"