Skip to content

Commit

Permalink
Merge pull request #1094 from waych/add_windows_ci
Browse files Browse the repository at this point in the history
Add Windows bundled builds to CI
  • Loading branch information
Cobrand authored Apr 23, 2021
2 parents 3de6172 + a3e7ed4 commit df71d98
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,30 @@ 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"]
build_mode: ["", "--release"]
steps:
- uses: actions/checkout@v2
- name: Build SDL2
shell: bash
env:
# Bundled doesn't yet support gfx, image, ttf, mixer.
CI_BUILD_FEATURES: "bundled"
RUST_TEST_THREADS: 1
run: |
set -xeuo pipefail
rustc --version
cargo --version
cargo build --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
cargo build --examples --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
cargo test --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
build-linux:
name: build linux
runs-on: ubuntu-20.04
Expand Down

0 comments on commit df71d98

Please sign in to comment.