diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index fdef362..8ef0715 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,3 +30,21 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose + + build-and-test-windows: + name: Build and test (Windows) + runs-on: windows-latest + steps: + - name: Check out repo + uses: actions/checkout@v4 + - name: Install MSYS2 + uses: msys2/setup-msys2@v2 + with: + msystem: mingw64 + install: diffutils m4 make mingw-w64-x86_64-gcc + - name: Build + shell: msys2 {0} + run: cargo build --verbose + - name: Run tests + shell: msys2 {0} + run: cargo test --verbose \ No newline at end of file