Skip to content

Enable illumos support #468

Enable illumos support

Enable illumos support #468

Workflow file for this run

name: CI - macOS - x86_64
on:
push:
branches:
- master
- feature-*
- issue-*
pull_request:
jobs:
build_and_test:
strategy:
fail-fast: false
matrix:
version:
- 1.63.0 # MSRV
- stable
- nightly
name: Test ${{ matrix.version }} - x86_64-apple-darwin
runs-on: macOS-latest
steps:
- name: Install Dependencies
run: |
brew install pkgconfig
brew install libarchive
echo PKG_CONFIG_PATH=$(brew ls libarchive | grep .pc$ | sed 's|/libarchive.pc||') >> $GITHUB_ENV
- name: Checkout sources
uses: actions/checkout@v4
- name: Install ${{ matrix.version }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.version }}-x86_64-apple-darwin
profile: minimal
override: true
- name: Generate Cargo.lock
uses: actions-rs/cargo@v1
with:
command: generate-lockfile
- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ matrix.version }}-x86_64-apple-darwin-cargo-registry-trimmed-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/git
key: ${{ matrix.version }}-x86_64-apple-darwin-cargo-index-trimmed-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ matrix.version }}-x86_64-apple-darwin-cargo-build-trimmed-${{ hashFiles('**/Cargo.lock') }}
- name: Check build
uses: actions-rs/cargo@v1
with:
command: check
args: --release --all --bins --examples --tests
- name: Tests
uses: actions-rs/cargo@v1
timeout-minutes: 10
with:
command: test
args: --release --all --all-features --no-fail-fast -- --nocapture