42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
on:
|
|
push:
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
CARGO_INCREMENTAL: 0
|
|
RUST_TEST_THREADS: 1
|
|
|
|
jobs:
|
|
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-2022, windows-2019]
|
|
target:
|
|
[x86_64-pc-windows-msvc, i686-pc-windows-msvc, x86_64-pc-windows-gnu]
|
|
channel: [nightly]
|
|
include:
|
|
- target: i686-pc-windows-gnu
|
|
channel: 1.46.0
|
|
os: windows-2022
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ matrix.channel }}
|
|
target: ${{ matrix.target }}
|
|
- if: matrix.target == 'i686-pc-windows-gnu'
|
|
uses: MinoruSekine/setup-scoop@main
|
|
- if: matrix.target == 'i686-pc-windows-gnu'
|
|
run: |
|
|
scoop install -a 32bit mingw
|
|
Join-Path (Resolve-Path ~).Path "scoop\apps\mingw\current\bin" >> $env:GITHUB_PATH
|
|
- shell: cmd
|
|
run: ./update_test_cert.bat
|
|
- run: cargo +${{ matrix.channel }} build --tests --target ${{ matrix.target }}
|
|
- run: cargo +${{ matrix.channel }} test --target ${{ matrix.target }}
|