summaryrefslogtreecommitdiffstats
path: root/.builds/rust.yml
diff options
context:
space:
mode:
Diffstat (limited to '.builds/rust.yml')
-rw-r--r--.builds/rust.yml18
1 files changed, 14 insertions, 4 deletions
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