Skip to content

Poking at CI

Poking at CI #33

Workflow file for this run

# Build, run Clippy, and test (native only) across all platforms
name: Check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
jobs:
test:

Check failure on line 15 in .github/workflows/check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
strategy:
matrix:
target: [
# "ubuntu-24.04-arm", # disabled due to unreliability
"ubuntu-latest",
"windows-latest",
"macos-14",
]
runs-on: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- 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') }}
- if: runner.os == 'Linux'
name: Install dependencies
run: sudo apt install libasound2-dev
shell: bash
- name: Test
run: cargo test --verbose
clippy:
strategy:
matrix:
target: [
# "ubuntu-24.04-arm", # disabled due to unreliability
"ubuntu-latest",
"windows-latest",
"macos-14",
]
runs-on: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
- if: runner.os == 'Linux'
name: Install dependencies
run: sudo apt install libasound2-dev
- name: Clippy
run: cargo clippy --all-targets --verbose
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
- name: Install wasm target
run: rustup target add wasm32-unknown-unknown
- name: Clippy
run: cargo clippy --target=wasm32-unknown-unknown -praven-gui
- name: Build
run: cargo build --target=wasm32-unknown-unknown -praven-gui
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check format
run: cargo fmt -- --check || exit 1