aboutsummaryrefslogtreecommitdiff
path: root/.builds/binary-generic-amd64-obsd.yml
blob: 8c6c4179864b5d157b8de54f2f96e6997c09fb88 (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
27
28
image: openbsd/latest
arch: amd64
packages:
  - gcc
secrets:
  - ae8f3553-d201-4358-ad35-2f04e7cc3976
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: |
      export RSTAR_DEBUG=1
      ./rakudo-star/bin/rstar sysinfo
      ./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: |
      echo 'put /tmp/rakudo-star-amd64-obsd-'*'.tar.gz' | sftp dist@dist.tyil.nl:raku/star-build