Skip to content

Don't use jemalloc when wasm #48

Don't use jemalloc when wasm

Don't use jemalloc when wasm #48

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
- develop
env:
CARGO_TERM_COLOR: always
CARGO_TERM_VERBOSE: true
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: rustup show
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check
- 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 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: RUSTFLAGS="--cfg web_sys_unstable_apis" cargo clippy --target wasm32-unknown-unknown