1
0
Fork 0
mirror of https://git.sr.ht/~spicywolf/k2spice synced 2025-01-18 09:49:38 +00:00

add debian CI

This commit is contained in:
Ren Kararou 2024-07-13 00:24:20 -05:00
parent 2355137d41
commit a31dea4d84
Signed by: spicywolf
GPG key ID: B0BA4EEC0714F8E6
2 changed files with 31 additions and 1 deletions

26
.builds/debian.yml Normal file
View 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

View file

@ -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"