wasm support, examples serving ci, on_viewport_location_change #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generated by nickel/ci.ncl; do not manually edit | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTDOCFLAGS: --deny warnings | |
RUSTFLAGS: --deny warnings | |
jobs: | |
check_all_features: | |
name: check_all_features | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: install rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: install bevy dependencies | |
run: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev | |
shell: bash | |
- name: populated target directory from cache | |
uses: Leafwing-Studios/cargo-cache@v2 | |
with: | |
sweep-cache: true | |
- name: install just | |
uses: extractions/setup-just@v2 | |
- name: install binstall | |
uses: cargo-bins/cargo-binstall@main | |
- name: install cargo all features | |
run: cargo binstall --no-confirm cargo-all-features | |
- name: check all features | |
run: just check_all_features | |
clippy: | |
name: clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: install rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy | |
- name: install bevy dependencies | |
run: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev | |
shell: bash | |
- name: populated target directory from cache | |
uses: Leafwing-Studios/cargo-cache@v2 | |
with: | |
sweep-cache: true | |
- name: install just | |
uses: extractions/setup-just@v2 | |
- name: run clippy | |
run: just clippy | |
docs: | |
name: docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: install rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: install bevy dependencies | |
run: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev | |
shell: bash | |
- name: populated target directory from cache | |
uses: Leafwing-Studios/cargo-cache@v2 | |
with: | |
sweep-cache: true | |
- name: install just | |
uses: extractions/setup-just@v2 | |
- name: check docs | |
run: just doc | |
format: | |
name: format | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: install rust toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- name: install just | |
uses: extractions/setup-just@v2 | |
- name: run format | |
run: just format -- --check | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: install rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: install bevy dependencies | |
run: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev | |
shell: bash | |
- name: populated target directory from cache | |
uses: Leafwing-Studios/cargo-cache@v2 | |
with: | |
sweep-cache: true | |
- name: install just | |
uses: extractions/setup-just@v2 | |
- name: run tests | |
run: just test | |
name: ci | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main |