Disable build examples in pkg-config
@@ -68,13 +68,11 @@ jobs:
- name: Build SDL2
shell: bash
env:
- CI_BUILD_FEATURES: "gfx image ttf mixer unsafe_textures raw-window-handle"
+ CI_BUILD_FEATURES: "gfx image ttf mixer"
RUST_TEST_THREADS: 1
run: |
set -xeuo pipefail
rustc --version
cargo --version
cargo build --features "${CI_BUILD_FEATURES}"
- # sensors.rs require sdl 2.0.14 which is not available in ubuntu-latest
- for example in $(ls examples/*.rs | grep -v sensors.rs); do cargo build --example "$(basename ${example%.*})" --features "${CI_BUILD_FEATURES}"; done
cargo test --features "${CI_BUILD_FEATURES}"
