aboutsummaryrefslogtreecommitdiff
path: root/.builds/binary-generic-x86_64-musl.yml
diff options
context:
space:
mode:
Diffstat (limited to '.builds/binary-generic-x86_64-musl.yml')
-rw-r--r--.builds/binary-generic-x86_64-musl.yml34
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/.