name: Build
on:
push:
branches-ignore:
- dependabot/**
pull_request:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: Build (${{ matrix.os }})
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5
- name: Install cargo-make
uses: taiki-e/install-action@7fe7b8c79a3c5569643cf27dfc32456883a4cd4d with:
tool: cargo-make@0.37.24
- name: Build
run: cargo make
- name: Install cargo-hack
uses: taiki-e/install-action@7fe7b8c79a3c5569643cf27dfc32456883a4cd4d with:
tool: cargo-hack@0.6.42
- name: Check 'rust-version' compatibility
run: cargo hack check --rust-version --workspace --all-targets --all-features