Skip to content

tmp: test on push

tmp: test on push #60

Workflow file for this run

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: 12.2.0.03042023
- 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 }}