Document old backport-eligible branches in README #54
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
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" |