mirror of
https://git.sr.ht/~spicywolf/k2spice
synced 2025-01-18 17:59:39 +00:00
add debian CI
This commit is contained in:
parent
2355137d41
commit
a31dea4d84
26
.builds/debian.yml
Normal file
26
.builds/debian.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
image: debian/stable
|
||||||
|
environment:
|
||||||
|
RUSTFLAGS: -D warnings
|
||||||
|
sources:
|
||||||
|
- https://git.sr.ht/~spicywolf/k2spice
|
||||||
|
tasks:
|
||||||
|
- rustup: |
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
rustup toolchain install nightly --allow-downgrade --profile minimal --component clippy
|
||||||
|
- bld-dbg: |
|
||||||
|
cd k2spice
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
cargo build
|
||||||
|
- bld-rel: |
|
||||||
|
cd k2spice
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
cargo build --release
|
||||||
|
- test: |
|
||||||
|
cd k2spice
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
cargo test
|
||||||
|
- clippy: |
|
||||||
|
cd k2spice
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
cargo clippy
|
|
@ -8,10 +8,14 @@ tasks:
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
rustup toolchain install nightly --allow-downgrade --profile minimal --component clippy
|
rustup toolchain install nightly --allow-downgrade --profile minimal --component clippy
|
||||||
- build: |
|
- bld-dbg: |
|
||||||
cd k2spice
|
cd k2spice
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
||||||
cargo build
|
cargo build
|
||||||
|
- bld-rel: |
|
||||||
|
cd k2spice
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
cargo build --release
|
||||||
- test: |
|
- test: |
|
||||||
cd k2spice
|
cd k2spice
|
||||||
source "$HOME/.cargo/env"
|
source "$HOME/.cargo/env"
|
Loading…
Reference in a new issue