-
Notifications
You must be signed in to change notification settings - Fork 51
42 lines (38 loc) · 1.21 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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.60.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 }}