Add and use setup-libmagic
GitHub Action
#55
Workflow file for this run
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: 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 |