Pin mingw version #59
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: Cargo build and test | |
on: [pull_request, workflow_dispatch, push] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
target: | |
- i686-pc-windows-gnu | |
- x86_64-pc-windows-gnu | |
- i686-pc-windows-msvc | |
- x86_64-pc-windows-msvc | |
rust: [stable] | |
include: | |
# Attach the platform data for MinGW to the -gnu targets | |
- target: i686-pc-windows-gnu | |
platform: x86 | |
- target: x86_64-pc-windows-gnu | |
platform: x64 | |
# Test more Rust channels on x86_64 msvc | |
- target: x86_64-pc-windows-msvc | |
rust: beta | |
- target: x86_64-pc-windows-msvc | |
rust: nightly | |
# MSRV. Bumping this is not treated as a breaknig change, | |
# but it should be mentioned in the changelog. | |
- target: x86_64-pc-windows-msvc | |
rust: 1.58.0 | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up MinGW | |
if: matrix.target == 'i686-pc-windows-gnu' || matrix.target == 'x86_64-pc-windows-gnu' | |
uses: egor-tensin/setup-mingw@v2 | |
with: | |
platform: ${{ matrix.platform }} | |
version: 13.1.0 | |
- name: Install Rust | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: ${{ matrix.rust }} | |
target: ${{ matrix.target }} | |
profile: minimal | |
default: true | |
- name: Build and test | |
shell: bash | |
run: | | |
set -x | |
export RUSTFLAGS="--deny warnings" | |
cargo build --verbose --target ${{ matrix.target }} | |
cargo test --target ${{ matrix.target }} |