From 29a2501f074772a94fc6897e14c8bc52c85830af Mon Sep 17 00:00:00 2001 From: a14m Date: Fri, 9 Apr 2021 00:08:13 +0200 Subject: Move to ubuntu as alpine (linux-musl) have segmentation fault error --- .builds/ruby.yml | 2 +- .builds/rust.yml | 18 ++++++++++++++---- 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 -- cgit v1.2.3