Skip to content

Commit df71d98

Browse files
authored
Merge pull request #1094 from waych/add_windows_ci
Add Windows bundled builds to CI
2 parents 3de6172 + a3e7ed4 commit df71d98

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/CI.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,30 @@ jobs:
3131
cargo build --examples --features "${CI_BUILD_FEATURES}"
3232
cargo test --features "${CI_BUILD_FEATURES}"
3333
34+
build-windows:
35+
name: build windows bundled
36+
runs-on: windows-latest
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
feature: ["", "static-link"]
41+
build_mode: ["", "--release"]
42+
steps:
43+
- uses: actions/checkout@v2
44+
- name: Build SDL2
45+
shell: bash
46+
env:
47+
# Bundled doesn't yet support gfx, image, ttf, mixer.
48+
CI_BUILD_FEATURES: "bundled"
49+
RUST_TEST_THREADS: 1
50+
run: |
51+
set -xeuo pipefail
52+
rustc --version
53+
cargo --version
54+
cargo build --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
55+
cargo build --examples --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
56+
cargo test --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
57+
3458
build-linux:
3559
name: build linux
3660
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)