Skip to content

Add a build workflow #36

Add a build workflow

Add a build workflow #36

Workflow file for this run

on:
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: x86_64-pc-windows-msvc
- run: |
set -eux
cargo install xwin
xwin --accept-license splat --output /xwin
cat > ~/.cargo/config.toml <<EOF
[target.x86_64-pc-windows-msvc]
linker = "lld"
runner = ["env", "WINEDEBUG=-all", "wine"]
rustflags = [
"-Lnative=/xwin/crt/lib/x86_64",
"-Lnative=/xwin/sdk/lib/um/x86_64",
"-Lnative=/xwin/sdk/lib/ucrt/x86_64"
]
EOF
if: matrix.os == 'ubuntu-latest'
- run: cargo test --all-features