@@ -31,14 +31,15 @@ jobs:
31
31
cargo build --examples --features "${CI_BUILD_FEATURES}"
32
32
cargo test --features "${CI_BUILD_FEATURES}"
33
33
34
- build-windows :
35
- name : build windows bundled
36
- runs-on : windows-latest
34
+ build-bundled :
35
+ name : build bundled
36
+ runs-on : ${{ matrix.os }}
37
37
strategy :
38
38
fail-fast : false
39
39
matrix :
40
40
feature : ["", "static-link"]
41
41
build_mode : ["", "--release"]
42
+ os : [macos-latest, ubuntu-latest, windows-latest]
42
43
steps :
43
44
- uses : actions/checkout@v2
44
45
- name : Build SDL2
@@ -56,12 +57,10 @@ jobs:
56
57
cargo test --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
57
58
58
59
build-linux :
59
- name : build linux
60
+ name : build linux pkg-config
60
61
runs-on : ubuntu-20.04
61
62
strategy :
62
63
fail-fast : false
63
- matrix :
64
- feature : ["", "bundled"]
65
64
steps :
66
65
- uses : actions/checkout@v2
67
66
- name : Install dependencies
77
76
set -xeuo pipefail
78
77
rustc --version
79
78
cargo --version
80
- cargo build --features "${CI_BUILD_FEATURES},${{matrix.feature}} "
81
- cargo build --examples --features "${CI_BUILD_FEATURES},${{matrix.feature}} "
82
- cargo test --features "${CI_BUILD_FEATURES},${{matrix.feature}} "
79
+ cargo build --features "${CI_BUILD_FEATURES}"
80
+ cargo build --examples --features "${CI_BUILD_FEATURES}"
81
+ cargo test --features "${CI_BUILD_FEATURES}"
0 commit comments