2023-06-25 18:31:28 -05:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-06-25 19:12:48 -05:00
|
|
|
branches: ["main"]
|
2023-10-20 20:27:23 -05:00
|
|
|
paths:
|
|
|
|
- "src/**"
|
2023-06-25 18:31:28 -05:00
|
|
|
pull_request:
|
2023-06-25 19:12:48 -05:00
|
|
|
branches: ["main"]
|
2023-10-20 20:27:23 -05:00
|
|
|
paths:
|
|
|
|
- "src/**"
|
2023-10-20 21:24:00 -05:00
|
|
|
workflow_dispatch:
|
2023-06-25 18:31:28 -05:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-10-20 20:13:17 -05:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Run rustup
|
|
|
|
run: rustup toolchain install stable
|
|
|
|
- name: Cache stuff maybe
|
|
|
|
uses: Swatinem/rust-cache@v2
|
2023-06-25 19:12:48 -05:00
|
|
|
- name: Get dependencies
|
2024-01-08 13:04:36 -06:00
|
|
|
run: sudo apt update && sudo apt install libwayland-dev libxkbcommon-dev libudev-dev libinput-dev libgbm-dev libseat-dev libsystemd-dev protobuf-compiler
|
2023-06-25 19:12:48 -05:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|
2023-06-29 12:29:00 -05:00
|
|
|
- name: Run tests that don't exist
|
2023-06-25 19:12:48 -05:00
|
|
|
run: cargo test --verbose
|
|
|
|
- name: Celebratory yahoo
|
|
|
|
run: echo yahoo
|