diff options
| author | a14m <[email protected]> | 2021-04-09 00:08:13 +0200 |
|---|---|---|
| committer | a14m <[email protected]> | 2021-04-09 01:18:25 +0200 |
| commit | 29a2501f074772a94fc6897e14c8bc52c85830af (patch) | |
| tree | d5b451b2f615b5f3682077d4e4dedf9b100ebdb8 | |
| parent | 4e4e4a0da954d7d9924118452276594649f65e86 (diff) | |
Move to ubuntu as alpine (linux-musl) have segmentation fault error
| -rw-r--r-- | .builds/ruby.yml | 2 | ||||
| -rw-r--r-- | .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 |
