Use `cargo check` instead of `cargo build`, add Linux.
`cargo check` basically runs the compilation step, but without code generation. This means it'll check for errors (which is what we want), but it'll also be a lot faster.
@@ -11,7 +11,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build
- run: cargo build --verbose
+ run: cargo check --verbose
- name: Test
run: cargo test --verbose
@@ -22,10 +22,23 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build
- run: cargo build --verbose
+ run: cargo check --verbose
- name: Test
run: cargo test --verbose
+ linux:
+ name: Linux CI
+ runs-on: ubuntu-latest
+ steps:
+ - name: Install Dependencies
+ run: apt install libasound2-dev libudev-dev pkg-config
+ - uses: actions/checkout@v2
+ - name: Build
+ run: cargo check --verbose
+ - name: Test
+ run: cargo test --verbose
+
+ # MacOS 11 CI is currently in beta. Uncomment the below lines when it's out of beta.
# macos11:
# name: MacOS Big Sur (M1) CI
# runs-on: macos-11
