21 lines
400 B
YAML
21 lines
400 B
YAML
variables:
|
|
- &rust_image 'git.seanomik.net/seanomik/rust-nightly:2023-11-21-bookworm'
|
|
|
|
when:
|
|
- event: pull_request
|
|
|
|
steps:
|
|
Build - Release:
|
|
image: *rust_image
|
|
commands:
|
|
- apt update
|
|
- apt install libudev-dev -y
|
|
- cargo build --release
|
|
|
|
Test - Release:
|
|
image: *rust_image
|
|
commands:
|
|
- apt update
|
|
- apt install libudev-dev -y
|
|
- cargo test --all --release
|