Add Windows bundled builds to CI
@@ -31,6 +31,28 @@ jobs:
cargo build --examples --features "${CI_BUILD_FEATURES}"
cargo test --features "${CI_BUILD_FEATURES}"
+ build-windows:
+ name: build windows bundled
+ runs-on: windows-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ feature: ["", "static-link"]
+ steps:
+ - uses: actions/checkout@v2
+ - name: Build SDL2
+ shell: bash
+ env:
+ CI_BUILD_FEATURES: "gfx image ttf mixer bundled"
+ RUST_TEST_THREADS: 1
+ run: |
+ set -xeuo pipefail
+ rustc --version
+ cargo --version
+ cargo build --features "${CI_BUILD_FEATURES},${{matrix.feature}}"
+ cargo build --examples --features "${CI_BUILD_FEATURES},${{matrix.feature}}"
+ cargo test --features "${CI_BUILD_FEATURES},${{matrix.feature}}"
+
build-linux:
name: build linux
runs-on: ubuntu-20.04
