Skip to content

Commit

Permalink
add tests on no-default-features on pr merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Sep 15, 2022
1 parent 94311fc commit f7e6cf6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/bors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ status = [
"check-compiles",
"build-and-install-on-iOS",
"run-examples-on-windows-dx12",
"build-without-default-features (bevy)",
"build-without-default-features (bevy_ecs)",
"build-without-default-features (bevy_reflect)",
]

use_squash_merge = true
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/validation-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,23 @@ jobs:
with:
name: screenshots
path: .github/start-wasm-example/screenshot-*.png

build-without-default-features:
strategy:
matrix:
crate: [bevy_ecs, bevy_reflect, bevy]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
if: runner.os == 'linux'
- name: Build
run: cargo build -p ${{ matrix.crate }} --no-default-features
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-C debuginfo=0 -D warnings"

0 comments on commit f7e6cf6

Please sign in to comment.