diff options
| author | a14m <[email protected]> | 2021-04-08 23:34:20 +0200 |
|---|---|---|
| committer | a14m <[email protected]> | 2021-04-08 23:48:26 +0200 |
| commit | 4e4e4a0da954d7d9924118452276594649f65e86 (patch) | |
| tree | 1a3c6d721e826d6ea3a7378bfedcec4e63f24aa2 | |
| parent | 877b0913c70d793e66fa5b2e922dcea69cbc738d (diff) | |
Add rust build file to srht
| -rw-r--r-- | .builds/rust.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.builds/rust.yml b/.builds/rust.yml new file mode 100644 index 0000000..5bc0392 --- /dev/null +++ b/.builds/rust.yml @@ -0,0 +1,26 @@ +image: rust/alpine + +sources: + - https://git.sr.ht/~a14m/game-of-life + +tasks: + - build: | + cd game-of-life/CLI/rust + cargo build --release + + - test: | + cd game-of-life/CLI/rust + + - lint: | + cd game-of-life/CLI/rust + cargo fmt -- --check + + - release: | + set +x + cd game-of-life/CLI/rust + REF=`git describe --exact-match --tags HEAD ||:` + if [[ ! `echo $REF | awk '/^rust\/v.*$/'` ]]; then + echo "Skipping release step. no matching tag" + exit 0 + fi + echo "Publishing release $REF" |
