~calmbit/suki

ref: 189fed04910a99ed7ab2c84fc7c1fb9c25b8f14d suki/builds/linux.yml -rw-r--r-- 606 bytes View raw
189fed04 — CalmBit first attempt at CI 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
image: archlinux
packages:
  - rustup
  - rsync
sources:
  - https://git.sr.ht/~calmbit/suki
secrets:
  - a70ff356-9ae9-47fc-97dc-03b06cedf851
environment:
  artifact: calmbit@107.174.128.143
tasks:
  - setup: |
      rustup install stable
      rustup default stable
      rustc -V
  - build: |
      cd suki
      cargo build
      cargo clippy --all -- -D warnings
  - package: |
      cd suki
      sshopts="ssh -o StrictHostKeyChecking=no"
      tar -cvf $(git rev-parse HEAD)-linux.tar.gz ./target/
      rsync --rsh="$sshopts" -a $(git rev-parse HEAD)-linux.tar.gz $artifact:/home/calmbit/artifacts/