about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRen Kararou <[email protected]>2023-11-29 09:07:59 -0600
committerRen Kararou <[email protected]>2023-11-29 09:07:59 -0600
commite14d1b04855c34c614c9921b0c6ade35c4325139 (patch)
treee8fe1bb6e5e10507d506fa8f7086c93100846e8d
parenta8bbbf06a452312dac56d81dd5cd3a248a9fe31e (diff)
downloadk2spice-e14d1b04855c34c614c9921b0c6ade35c4325139.tar.gz
k2spice-e14d1b04855c34c614c9921b0c6ade35c4325139.tar.bz2
k2spice-e14d1b04855c34c614c9921b0c6ade35c4325139.zip
add ci
-rw-r--r--.build.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..5ba9a1d
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,20 @@
+image: freebsd/latest
+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
+  - build: |
+      cd k2spice
+      source "$HOME/.cargo/env"
+      cargo build
+  - test: |
+      cd k2spice
+      source "$HOME/.cargo/env"
+      cargo test
+  - clippy: |
+      cd k2spice
+      source "$HOME/.cargo/env"
+      cargo clippy