build: add i686 windows #32
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
name: Rust | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, macos-latest, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: target | |
key: ${{ runner.os }}-target | |
- name: Install vcpkg | |
run: cargo install cargo-vcpkg | |
- name: Build | |
run: | | |
cargo vcpkg --verbose build --target i686-pc-windows-msvc | |
cargo build --verbose --release --target i686-pc-windows-msvc | |
env: | |
VCPKG_ROOT: |- | |
${{ github.workspace }}${{ | |
runner.os == 'Windows' && '\\target\\vcpkg' || '/target/vcpkg' }} | |
MACOSX_DEPLOYMENT_TARGET: 11.0 | |
- name: Run tests | |
run: cargo test --verbose --release | |
- name: Upload Binary | |
uses: actions/upload-artifact@v3.1.0 | |
with: | |
name: checker-${{ matrix.os }} | |
path: |- | |
${{ runner.os == 'Windows' && 'target\\release\\checker.exe' | |
|| 'target/release/checker' }} | |
retention-days: 30 |