Skip to content

Commit

Permalink
GH Actions changes (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Plonq authored Feb 20, 2024
1 parent 5248166 commit 8164eb9
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,35 @@ on:
name: Continuous integration

jobs:
check:
name: Check
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo build

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
if: runner.os == 'linux'
- run: cargo check
- run: cargo check --examples
- run: cargo check --tests
- run: cargo test

build-and-test:
name: Build and Test
build-examples:
name: Build Examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
if: runner.os == 'linux'
- run: cargo build --verbose
- run: cargo build --examples --verbose
- run: cargo test
- run: cargo build --examples

fmt:
name: Rustfmt
Expand Down

0 comments on commit 8164eb9

Please sign in to comment.