summaryrefslogtreecommitdiffstats
path: root/.builds
diff options
context:
space:
mode:
Diffstat (limited to '.builds')
-rw-r--r--.builds/ruby.yml2
-rw-r--r--.builds/rust.yml18
2 files changed, 15 insertions, 5 deletions
diff --git a/.builds/ruby.yml b/.builds/ruby.yml
index aeb97bc..d488102 100644
--- a/.builds/ruby.yml
+++ b/.builds/ruby.yml
@@ -13,7 +13,7 @@ secrets:
- 3bf42fd4-1985-48db-8790-1f61cde29671
tasks:
- - build: |
+ - install: |
cd game-of-life/CLI/ruby
bundle install -j $(nproc)
diff --git a/.builds/rust.yml b/.builds/rust.yml
index 5bc0392..d7cceb7 100644
--- a/.builds/rust.yml
+++ b/.builds/rust.yml
@@ -1,17 +1,25 @@
-image: rust/alpine
+image: ubuntu/focal
+
+packages:
+ - pkg-config
+ - libssl-dev
sources:
- https://git.sr.ht/~a14m/game-of-life
tasks:
- - build: |
- cd game-of-life/CLI/rust
- cargo build --release
+ - install: |
+ curl https://sh.rustup.rs -sSf | sh -s -- -y
+ source $HOME/.cargo/env
+ rustup install nightly
- test: |
+ source $HOME/.cargo/env
cd game-of-life/CLI/rust
+ cargo +nightly test
- lint: |
+ source $HOME/.cargo/env
cd game-of-life/CLI/rust
cargo fmt -- --check
@@ -24,3 +32,5 @@ tasks:
exit 0
fi
echo "Publishing release $REF"
+ source $HOME/.cargo/env
+ cargo build --release