about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.builds/debian.yml26
-rw-r--r--.builds/freebsd.yml (renamed from .build.yml)6
2 files changed, 31 insertions, 1 deletions
diff --git a/.builds/debian.yml b/.builds/debian.yml
new file mode 100644
index 0000000..e1e9c55
--- /dev/null
+++ b/.builds/debian.yml
@@ -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
diff --git a/.build.yml b/.builds/freebsd.yml
index 56858d1..0463811 100644
--- a/.build.yml
+++ b/.builds/freebsd.yml
@@ -8,10 +8,14 @@ tasks:
       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
-  - build: |
+  - 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"