From 6f47cf919193d37da469731f58c8a0ba2c4e84ea Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Wed, 26 Nov 2025 08:10:19 -0500 Subject: [PATCH] Add Windows CI --- .github/workflows/ci.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc40375..88270a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,3 +1,5 @@ +# TODO: test more stuff on Windows. + name: CI on: @@ -13,7 +15,14 @@ env: jobs: build: - runs-on: ubuntu-24.04 + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: + - ubuntu-24.04 + - windows-2025 + steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 @@ -24,6 +33,7 @@ jobs: components: clippy - name: Download and install GCC fork + if: ${{ matrix.os == 'ubuntu-24.04' }} run: | curl -LO https://github.com/antoyo/gcc/releases/latest/download/gcc-15.deb sudo dpkg --force-overwrite -i gcc-15.deb @@ -51,17 +61,24 @@ jobs: key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain') }} - name: Build + if: ${{ matrix.os == 'ubuntu-24.04' }} run: | cargo build cargo build --features master,dlopen cargo build --examples + - name: Build + if: ${{ matrix.os == 'windows-2025' }} + run: cargo build --features master,dlopen + - name: Test + if: ${{ matrix.os == 'ubuntu-24.04' }} run: | cd examples/factorial cargo build - name: clippy + if: ${{ matrix.os == 'ubuntu-24.04' }} run: | cargo clippy --all-targets -- -D warnings cargo clippy --all-targets --features master,dlopen -- -D warnings