aboutsummaryrefslogtreecommitdiff
path: root/.builds
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2025-10-18 01:43:15 +0200
committerPolesznyák Márk <contact@pml68.dev>2025-10-18 02:48:55 +0200
commitd8b724701dde52a17daf9874e8bbcf2a64ac7d7a (patch)
tree7f0b587613473376a3d88e3794ceb2391cff4b65 /.builds
downloadiced_selection-d8b724701dde52a17daf9874e8bbcf2a64ac7d7a.tar.gz
feat: initial commit
Diffstat (limited to '')
-rw-r--r--.builds/ci.yml24
-rw-r--r--.builds/doc.yml23
2 files changed, 47 insertions, 0 deletions
diff --git a/.builds/ci.yml b/.builds/ci.yml
new file mode 100644
index 0000000..aed0e26
--- /dev/null
+++ b/.builds/ci.yml
@@ -0,0 +1,24 @@
+image: ubuntu/noble
+packages:
+ - rustup
+ - pkg-config
+ - libxkbcommon-dev
+ - libssl-dev
+triggers:
+ - action: email
+ condition: failure
+ to: "<~pml68/iced-crates@lists.sr.ht>"
+tasks:
+ - rust-setup: |
+ rustup toolchain install stable --profile default -c clippy
+ rustup default stable
+ - lint: |
+ cd iced_selection
+ cargo lint
+ - test: |
+ cd iced_selection
+ cargo test --verbose --doc
+ cargo test --verbose --all-targets
+ - build-example: |
+ cd iced_selection
+ cargo build --example name
diff --git a/.builds/doc.yml b/.builds/doc.yml
new file mode 100644
index 0000000..c70f1d4
--- /dev/null
+++ b/.builds/doc.yml
@@ -0,0 +1,23 @@
+image: alpine/edge
+oauth: pages.sr.ht/PAGES:RW
+packages:
+ - cargo
+ - hut
+environment:
+ site: iced-selection.pml68.dev
+tasks:
+ - build-docs: |
+ cd iced_selection
+ cargo doc --verbose --no-deps
+ - copy-redirect: |
+ cd iced_selection
+ cp docs/redirect.html target/doc/index.html
+ - package: |
+ cd iced_selection
+ tar -C target/doc -cvz . > site.tar.gz
+ - upload: |
+ cd iced_selection
+ [ "$BUILD_SUBMITTER" = "git.sr.ht" ] || complete-build
+ [ "$GIT_REF" = "refs/heads/master" ] || complete-build
+ [ "$(git remote get-url origin)" = "https://git.sr.ht/~pml68/iced_selection" ] || complete-build
+ hut pages publish -d $site site.tar.gz