Skip to content

Commit

Permalink
Merge pull request #27 from jameshiew/ci
Browse files Browse the repository at this point in the history
CI
  • Loading branch information
jameshiew authored Dec 5, 2024
2 parents ff128c1 + 05d911c commit b0c03df
Showing 1 changed file with 41 additions and 7 deletions.
48 changes: 41 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,65 @@ env:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: rustup show
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check
vet:
runs-on: ubuntu-latest
- name: Install system packages needed by Bevy
run: |
sudo apt-get install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
- run: cargo hack clippy --all-targets --feature-powerset --skip dynamic-linking
test:
runs-on: ubuntu-24.04
needs: lint
steps:
- uses: actions/checkout@v4
- run: rustup show
- name: Install system packages needed by Bevy
run: |
sudo apt-get install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-targets
test:
runs-on: ubuntu-latest
- run: cargo hack test --all-targets --feature-powerset --skip dynamic-linking
docs:
runs-on: ubuntu-24.04
needs: lint
steps:
- uses: actions/checkout@v4
- run: rustup show
- name: Install system packages needed by Bevy
run: |
sudo apt-get install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
- run: RUSTDOCFLAGS="-Dwarnings" cargo hack doc --document-private-items --no-deps --feature-powerset --skip dynamic-linking
check_other_oses:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- windows-2022
- macos-15
needs: lint
steps:
- uses: actions/checkout@v4
- run: rustup show
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
- run: cargo hack clippy --all-targets --feature-powerset --skip dynamic-linking
wasm:
runs-on: ubuntu-24.04
needs: lint
steps:
- uses: actions/checkout@v4
- run: rustup show
- run: rustup target add wasm32-unknown-unknown
- name: Install system packages needed by Bevy
run: |
sudo apt-get install -y g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev
- uses: Swatinem/rust-cache@v2
- run: cargo test
- run: RUSTFLAGS="--cfg web_sys_unstable_apis" cargo clippy --target wasm32-unknown-unknown

0 comments on commit b0c03df

Please sign in to comment.