diff options
Diffstat (limited to '.builds')
| -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" |
