aboutsummaryrefslogtreecommitdiff
path: root/.builds/binary-generic-amd64-obsd.yml
blob: cfad98041c16ae3de0d4134182aae5f85606dd8a (plain)
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
image: openbsd/latest
arch: amd64
packages:
  - gcc
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
      curl -L http://cpanmin.us | doas perl - App::cpanminus
      doas cpanm -v ExtUtils::Command Pod::Usage
  - 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 -cf - . | gzip -9cn > "/tmp/rakudo-star-amd64-obsd-$COMMIT.tar.gz"
  - upload: |
      scp /tmp/rakudo-star-amd64-obsd-*.tar.gz dist@store0-0.tyil.net:data/tmp/.