Merge pull request #159 from Schmarni-Dev/create_xr_hands #4
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
check_linux: | |
name: Check Ubuntu | |
runs-on: ubuntu-latest | |
env: | |
CARGO_TERM_COLOR: always | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install bevy dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y \ | |
g++ pkg-config libx11-dev libasound2-dev libudev-dev libopenxr-loader1 libopenxr-dev | |
- name: Cache cargo dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: check | |
run: cargo check --all --all-targets | |
check_windows: | |
name: Check Windows | |
runs-on: windows-latest | |
env: | |
CARGO_TERM_COLOR: always | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache cargo dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: check | |
run: cargo check --all --all-targets | |
check_wasm: | |
name: Check Wasm | |
runs-on: ubuntu-latest | |
env: | |
CARGO_TERM_COLOR: always | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache cargo dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: install wasm toolchain | |
run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown --no-self-update | |
- run: cargo check --target wasm32-unknown-unknown -p bevy_mod_xr | |
- run: cargo check --target wasm32-unknown-unknown -p bevy_mod_openxr | |
- run: cargo check --target wasm32-unknown-unknown -p bevy_mod_webxr | |
- run: cargo check --target wasm32-unknown-unknown -p bevy_xr_utils |