~hristoast/wem

wem/.build.yml -rw-r--r-- 873 bytes
05a9a6bbHristos N. Triantafillou Get the version from git at compile time a month 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
25
26
27
28
29
30
image: debian/buster
environment:
  go_version: 1.16.7
packages:
  - make
  - rsync
  - wget
  - wine
secrets:
 - 0f9ebb75-bdef-4a77-9cee-18b4acc54f50
 - 8f283420-7682-47d1-923f-1711018383c9
 - 5922df6f-5722-4ad3-b8a7-50565e81bc1d
sources:
  - https://git.sr.ht/~hristoast/wem
tasks:
  - install-32bit-wine: |
      sudo dpkg --add-architecture i386
      sudo apt-get update
      sudo apt-get install -y --force-yes wine32
  - get-golang: |
      wget https://golang.org/dl/go${go_version}.linux-amd64.tar.gz
      sudo tar -C /usr/local -xzf go${go_version}.linux-amd64.tar.gz
      sudo ln -s /usr/local/go/bin/go /usr/bin/
  - build-and-package: |
      cd wem
      time make pkg
      sha256sum wem.tar.bz2 > wem.tar.bz2.sha256sum.txt
  - deploy: |
      cd wem
      rsync -aq -e "ssh -F $HOME/.wem_ssh_config" wem.tar.bz2 wem.tar.bz2.sha256sum.txt wem:~/html/wem/