diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-06-04 16:58:41 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-11-20 20:42:29 +0100 |
commit | 7889f53f08eb03f6349db2f7af9d14d0564b7fc8 (patch) | |
tree | f94d28533ab302a74f37586c15f56c7301c29217 /.builds/binary-generic-x86_64-musl.yml | |
parent | dfe0e762c03caf234f8840c1f8c91188bb081a32 (diff) |
Add builds.sr.ht instructions to build amd64 binaries
Diffstat (limited to '.builds/binary-generic-x86_64-musl.yml')
-rw-r--r-- | .builds/binary-generic-x86_64-musl.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.builds/binary-generic-x86_64-musl.yml b/.builds/binary-generic-x86_64-musl.yml new file mode 100644 index 0000000..afa4798 --- /dev/null +++ b/.builds/binary-generic-x86_64-musl.yml @@ -0,0 +1,34 @@ +image: alpine/latest +packages: + - bash + - gcc + - libc-dev + - make + - perl +secrets: + - 63069bd6-993a-4133-aaf9-51398b07d60e +tasks: + - prepare: | + mkdir -p "/tmp/ci-$JOB_ID" + mkdir -p ~/.ssh + cat <<-EOF > ~/.ssh/config + StrictHostKeyChecking no + UserKnownHostsFile /dev/null + EOF + - build: | + ./rakudo-star/bin/rstar fetch + ./rakudo-star/bin/rstar install -p "/tmp/ci-$JOB_ID" + - package: | + COMMIT="$(git -C rakudo-star rev-parse HEAD)" + SOURCE_DATE_EPOCH="$(git -C rakudo-star log -1 --pretty=format:%at)" + cd -- "/tmp/ci-$JOB_ID" + tar -c \ + --mtime "@$SOURCE_DATE_EPOCH" \ + --mode=go=rX,u+rw,a-s \ + --format=gnu \ + --numeric-owner --owner=0 --group=0 \ + . \ + | gzip -9cn \ + > "/tmp/rakudo-star-x86_64-musl-$COMMIT.tar.gz" + - upload: | + scp /tmp/rakudo-star-x86_64-musl-*.tar.gz dist@store0-0.tyil.net:data/tmp/. |