-
-
Notifications
You must be signed in to change notification settings - Fork 29
41 lines (34 loc) · 1.3 KB
/
msvc.yml
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
on: [push, pull_request]
name: CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
msvc:
name: MSVC
strategy:
fail-fast: false
matrix:
rust_version: [stable, 1.70.0]
target:
- x86_64-pc-windows-msvc
- i686-pc-windows-msvc
- aarch64-pc-windows-msvc
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust_version }}
targets: ${{ matrix.target }}
- run: pip install "pefile==2023.2.7"
- run: cargo build --verbose --release --target ${{ matrix.target }} --workspace
# Runner is x86_64, can only run i686 and x86_64
- if: contains(matrix.target, '86')
run: cargo test --verbose --release --target ${{ matrix.target }}
- if: contains(matrix.target, '86')
run: cargo run --verbose --release --target ${{ matrix.target }} -- empty-resource.rc
# Embed resources into a cross-compiled binary, and check.
- run: python3 .github/workflows/msvc/test.py "target/${{ matrix.target }}/release/embed-resource-msvc-test.exe"
- if: contains(matrix.target, '86')
run: "target/${{ matrix.target }}/release/embed-resource-msvc-test.exe"