fix windows build #76
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: Rust | |
on: | |
push: | |
branches: [ "master", "ci" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Initialize Submodules | |
run: git submodule update --init --recursive | |
- name: Build | |
run: cargo build --verbose | |
- name: Tests | |
run: cargo test --verbose | |
- name: Clippy | |
run: cargo clippy ${{ matrix.build-args }} -- -D warnings | |
build-msrv-1660: | |
name: Windows | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- version: stable # STABLE | |
- version: 1.66.0 # MSRV | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Submodules | |
run: git submodule update --init --recursive | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-cargo-msrv-1.66.0-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} | |
- name: Set default toolchain | |
run: rustup default ${{ matrix.rust.version }} | |
- name: Set profile | |
run: rustup set profile minimal && rustup component add clippy | |
- name: Build | |
run: cargo build ${{ matrix.build-args }} | |
- name: Tests | |
run: cargo test ${{ matrix.build-args }} | |
- name: Clippy | |
run: cargo clippy ${{ matrix.build-args }} -- -D warnings |