f7a80727444c20179a0af599b2db9a62546c9e4a — Evan Hanson 3 months ago 46f8adc 0.1.6
Add static build and deploy to manifest
1 files changed, 19 insertions(+), 0 deletions(-)

R .builds/{alpine.yaml => alpine.yml}
R .builds/alpine.yaml => .builds/alpine.yml +19 -0
@@ 2,15 2,29 @@
 packages:
   - chicken
   - gcc
+  - libc-dev
   - openssl-dev
+  - rsync
+  - sudo
 sources:
   - https://git.sr.ht/~evhan/topham
 secrets:
   - 8c478eb6-27c2-4883-bd85-4bb0ca2d6c33
+  - 6026e7c6-ed80-411e-b4e1-5ed1dbeee131
+environment:
+  CSC_CLI_OPTIONS: |
+    "-static -L -static -L -lssl -L -lcrypto -L -ldl -L -pthread"
+  DEPLOY_HOST: |
+    "chicken@foldling.org:topham"
+  RSYNC_RSH: |
+    "ssh -q -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
 tasks:
   - build: |
       cd topham
       chicken-install -s
+      touch cli.scm
+      export CSC_OPTIONS=${CSC_CLI_OPTIONS}
+      chicken-install -s
   - test: |
       cd topham
       {


@@ 20,3 34,8 @@
       }
       export SRHT_ACCESS_TOKEN
       chicken-install -s -test
+  - deploy: |
+      cd topham
+      git describe --exact-match --tags HEAD || exit
+      rsync cli ${DEPLOY_HOST}/topham-x86_64-linux
+      rsync cli ${DEPLOY_HOST}/topham-x86_64-linux-musl