blob: 5bc03921235b6258910a52b02cddf2766f8332ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"
|