Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
Signed-off-by: Schmarni <marnistromer@gmail.com>
  • Loading branch information
Schmarni-Dev committed Oct 21, 2024
1 parent 6666339 commit 33eae2e
Showing 1 changed file with 34 additions and 13 deletions.
47 changes: 34 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,43 @@ on:
workflow_dispatch:

jobs:
check_native:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]

name: Check ${{ matrix.os }}
runs-on: ${{ matrix.os }}

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

- run: rustup toolchain install stable --profile minimal --no-self-update
- name: Cache cargo dependencies
uses: Swatinem/rust-cache@v2

- run: cargo check --all --all-targets
working-directory: .
- name: check
run: cargo check --all --all-targets

check_wasm:
name: Check Wasm
Expand All @@ -37,10 +55,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown --no-self-update
- 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_mod_xr_utils
working-directory: .
- run: cargo check --target wasm32-unknown-unknown -p bevy_xr_utils

0 comments on commit 33eae2e

Please sign in to comment.