2023-06-26 01:31:28 +02:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-06-26 02:12:48 +02:00
|
|
|
branches: ["main"]
|
2023-10-21 03:27:23 +02:00
|
|
|
paths:
|
|
|
|
- "src/**"
|
2023-06-26 01:31:28 +02:00
|
|
|
pull_request:
|
2023-06-26 02:12:48 +02:00
|
|
|
branches: ["main"]
|
2023-10-21 03:27:23 +02:00
|
|
|
paths:
|
|
|
|
- "src/**"
|
2023-10-21 04:24:00 +02:00
|
|
|
workflow_dispatch:
|
2023-06-26 01:31:28 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-10-21 03:13:17 +02:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Run rustup
|
|
|
|
run: rustup toolchain install stable
|
|
|
|
- name: Cache stuff maybe
|
|
|
|
uses: Swatinem/rust-cache@v2
|
2023-06-26 02:12:48 +02:00
|
|
|
- name: Get dependencies
|
2024-01-08 20:04:36 +01: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-26 02:12:48 +02:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|
2023-06-29 19:29:00 +02:00
|
|
|
- name: Run tests that don't exist
|
2023-06-26 02:12:48 +02:00
|
|
|
run: cargo test --verbose
|
|
|
|
- name: Celebratory yahoo
|
|
|
|
run: echo yahoo
|