mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Merge pull request #1101 from waych/more_tests
Expand bundled testing to linux and macos
This commit is contained in:
@@ -31,14 +31,15 @@ jobs:
|
||||
cargo build --examples --features "${CI_BUILD_FEATURES}"
|
||||
cargo test --features "${CI_BUILD_FEATURES}"
|
||||
|
||||
build-windows:
|
||||
name: build windows bundled
|
||||
runs-on: windows-latest
|
||||
build-bundled:
|
||||
name: build bundled
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
feature: ["", "static-link"]
|
||||
build_mode: ["", "--release"]
|
||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build SDL2
|
||||
@@ -56,12 +57,10 @@ jobs:
|
||||
cargo test --features "${CI_BUILD_FEATURES} ${{matrix.feature}}" ${{matrix.build_mode}}
|
||||
|
||||
build-linux:
|
||||
name: build linux
|
||||
name: build linux pkg-config
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
feature: ["", "bundled"]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install dependencies
|
||||
@@ -77,6 +76,6 @@ jobs:
|
||||
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}}"
|
||||
cargo build --features "${CI_BUILD_FEATURES}"
|
||||
cargo build --examples --features "${CI_BUILD_FEATURES}"
|
||||
cargo test --features "${CI_BUILD_FEATURES}"
|
||||
|
||||
Reference in New Issue
Block a user