Skip to content

build(deps): bump cc from 1.0.99 to 1.0.100 #373

build(deps): bump cc from 1.0.99 to 1.0.100

build(deps): bump cc from 1.0.99 to 1.0.100 #373

Workflow file for this run

name: Windows
on: push
jobs:
build-windows:
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
arch: [x86_64]
variant: [gnu, msvc]
channel: [stable]
# Change the line above to the following for more Rust channels:
# channel: [stable, beta, nightly]
steps:
- uses: actions/checkout@v4
- run: choco install msys2
if: matrix.variant == 'gnu'
- run: rustup default ${{ matrix.channel }}-pc-windows-${{ matrix.variant }}
- run: rustup target add ${{ matrix.arch }}-pc-windows-${{ matrix.variant }}
- name: Show toolchain versions
run: |
cargo --version --verbose
rustc --version --verbose
- name: Apply Windows-specific patch
run: git apply --ignore-whitespace ci\windows.patch
- name: Build application
run: cargo build --verbose --target ${{ matrix.arch }}-pc-windows-${{ matrix.variant }}
- name: Run tests
# network tests can be a bit flaky, so try up to three times
run: cargo test --verbose --target ${{ matrix.arch }}-pc-windows-${{ matrix.variant }} || cargo test --verbose --target ${{ matrix.arch }}-pc-windows-${{ matrix.variant }} || cargo test --verbose --target ${{ matrix.arch }}-pc-windows-${{ matrix.variant }}