-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (34 loc) · 917 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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: |
cargo test --workspace
- name: Run tests with all features
run: |
cargo test --workspace #--features=std,fugit,femtos
- name: Run test with no_std
run: |
cargo test --workspace --no-default-features