Skip to content

Add and use setup-libmagic GitHub Action #55

Add and use setup-libmagic GitHub Action

Add and use setup-libmagic GitHub Action #55

Workflow file for this run

name: macOS
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-libmagic
- name: install Rust MSRV
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # v1.0.6
with:
profile: minimal
# toolchain could be implicit from rust-toolchain.toml see https://github.com/actions-rs/toolchain#the-toolchain-file
# but this doesn't support .toml files
toolchain: "1.64.0"
override: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose