-
Notifications
You must be signed in to change notification settings - Fork 16
29 lines (24 loc) · 852 Bytes
/
Copy pathrust.yml
File metadata and controls
29 lines (24 loc) · 852 Bytes
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
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y pkg-config libasound2-dev
# --workspace, not the default. Without it cargo only builds and tests the
# root `iris` package, so iris-gui was never compiled here at all and its
# tests never ran — a GUI-only breakage could not turn this red. It needs no
# extra system packages: wayland, X11 and GL are dlopen'd at runtime, so the
# only thing it links is libasound, which is already installed above.
- name: Build
run: cargo build --workspace --verbose
- name: Run tests
run: cargo test --workspace --verbose