moa/.github/workflows/test.yaml

45 lines
917 B
YAML
Raw Normal View History

name: test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
env:
RUSTFLAGS: '--deny warnings'
jobs:
test-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev
- name: Select rust version
run: |
rustup toolchain install 1.70 --profile minimal --no-self-update
rustup default 1.70
- name: Run tests with default features
run: |
2024-03-17 19:26:00 +00:00
cargo test --workspace
- name: Run tests with all features
run: |
2024-03-17 19:26:00 +00:00
cargo test --workspace #--features=std,fugit,femtos
- name: Run test with no_std
run: |
2024-03-17 19:26:00 +00:00
cargo test --workspace --no-default-features