mirror of
https://github.com/lightsoutgames/bevy_full_throttle
synced 2024-11-14 16:25:57 +00:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
|
name: CI
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
push:
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
strategy:
|
||
|
matrix:
|
||
|
# os: [windows-latest, ubuntu-latest, macos-latest]
|
||
|
os: [ubuntu-latest]
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
with:
|
||
|
submodules: "true"
|
||
|
- uses: actions/cache@v4
|
||
|
with:
|
||
|
path: ~/.cache/pre-commit
|
||
|
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||
|
- uses: actions/cache@v4
|
||
|
with:
|
||
|
path: |
|
||
|
~/.cargo/bin/
|
||
|
~/.cargo/registry/index/
|
||
|
~/.cargo/registry/cache/
|
||
|
~/.cargo/git/db/
|
||
|
target/
|
||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||
|
- uses: dtolnay/rust-toolchain@master
|
||
|
with:
|
||
|
toolchain: stable
|
||
|
components: rustfmt, clippy
|
||
|
- name: install Linux build dependencies
|
||
|
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libasound2-dev libudev-dev libspeechd-dev libwayland-dev libclang-dev cmake
|
||
|
if: runner.os == 'linux'
|
||
|
- uses: actions/setup-python@v3
|
||
|
- uses: pre-commit/action@v3.0.1
|