Update to Bevy 0.12 #27
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
name: Rust CI Workflow | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
concurrency: | |
group: ${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ windows-latest, macos-latest, ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install platform dependencies | |
uses: ./.github/actions/install-platform-dependencies | |
with: | |
os: ${{ matrix.os }} | |
- name: Setup cache | |
uses: ./.github/actions/setup-cache-action | |
- name: Compile project | |
run: cargo build --all-features --lib --examples | |
# This job is currently disabled because it requires the FMOD libraries to be present. | |
# We will revisit this once we actually have any tests. | |
#test: | |
# needs: build | |
# strategy: | |
# fail-fast: true | |
# matrix: | |
# os: [ windows-latest, macos-latest, ubuntu-latest ] | |
# runs-on: ${{ matrix.os }} | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Setup cache | |
# uses: ./.github/actions/setup-cache-action | |
# - if: matrix.os == 'ubuntu-latest' | |
# name: (Ubuntu) Install platform dependencies | |
# run: sudo apt install -y libasound2-dev libudev-dev | |
# - name: Execute tests | |
# run: cargo test | |
lint: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install platform dependencies | |
uses: ./.github/actions/install-platform-dependencies | |
with: | |
os: ubuntu-latest | |
- name: Setup cache | |
uses: ./.github/actions/setup-cache-action | |
- name: Lint with clippy | |
run: cargo clippy --all-targets --lib --examples -- -D warnings |