|
| 1 | +# release CI for FreeBSD |
| 2 | +compute_engine_instance: |
| 3 | + image_project: freebsd-org-cloud-dev |
| 4 | + image: family/freebsd-13-1 |
| 5 | + platform: freebsd |
| 6 | + disk: 100 # Gb |
| 7 | + |
| 8 | +build_task: |
| 9 | + timeout_in: 120m |
| 10 | + only_if: $CIRRUS_TAG != '' |
| 11 | + env: |
| 12 | + AWS_ACCESS_KEY_ID: ENCRYPTED[dc5896620ebc12e98e6bbe96f72c5a2fe3785f439b7b2346797355f8d329a4bfd8ef6e58086bfc014be0d914424101cd] |
| 13 | + AWS_SECRET_ACCESS_KEY: ENCRYPTED[6501cd594aca08c6c67cc679dd6f6d30db0cd44a81cceddebf32bb3d0a37f9af19cd71ddb7169d3f7b284a7829969f9e] |
| 14 | + S3_HOST: ENCRYPTED[d3fef1b5850e85d80dd1684370b53183df2218f2d36509108a2703371afd9ebd3f9596ad4de52487c15ea29baed606b7] |
| 15 | + TARBALL_EXT: "tar.xz" |
| 16 | + ARCH: 64 |
| 17 | + ARTIFACT: "x86_64-freebsd" |
| 18 | + DISTRO: "na" |
| 19 | + RUNNER_OS: "FreeBSD" |
| 20 | + ADD_CABAL_ARGS: "--enable-split-sections" |
| 21 | + GITHUB_WORKSPACE: ${CIRRUS_WORKING_DIR} |
| 22 | + CABAL_CACHE_NONFATAL: "yes" |
| 23 | + matrix: |
| 24 | + - name: build-ghc-8.10.7 |
| 25 | + env: |
| 26 | + GHC_VERSION: 8.10.7 |
| 27 | + - name: build-ghc-9.0.2 |
| 28 | + env: |
| 29 | + GHC_VERSION: 9.0.2 |
| 30 | + - name: build-ghc-9.2.5 |
| 31 | + env: |
| 32 | + GHC_VERSION: 9.2.5 |
| 33 | + - name: build-ghc-9.2.7 |
| 34 | + env: |
| 35 | + GHC_VERSION: 9.2.7 |
| 36 | + install_script: pkg install -y hs-cabal-install git bash misc/compat10x misc/compat11x misc/compat12x gmake patchelf tree |
| 37 | + script: |
| 38 | + - tzsetup Etc/GMT |
| 39 | + - adjkerntz -a |
| 40 | + - bash .github/scripts/build.sh |
| 41 | + - tar caf out.tar.xz out/ store/ |
| 42 | + binaries_artifacts: |
| 43 | + path: "out.tar.xz" |
| 44 | + |
| 45 | + |
| 46 | +bindist_task: |
| 47 | + name: bindist |
| 48 | + depends_on: |
| 49 | + - build-ghc-8.10.7 |
| 50 | + - build-ghc-9.0.2 |
| 51 | + - build-ghc-9.2.5 |
| 52 | + - build-ghc-9.2.7 |
| 53 | + timeout_in: 120m |
| 54 | + only_if: $CIRRUS_TAG != '' |
| 55 | + env: |
| 56 | + TARBALL_EXT: "tar.xz" |
| 57 | + ARCH: 64 |
| 58 | + ARTIFACT: "x86_64-freebsd" |
| 59 | + DISTRO: "na" |
| 60 | + RUNNER_OS: "FreeBSD" |
| 61 | + GITHUB_WORKSPACE: ${CIRRUS_WORKING_DIR} |
| 62 | + install_script: pkg install -y hs-cabal-install git bash misc/compat10x misc/compat11x misc/compat12x gmake patchelf tree unzip |
| 63 | + script: |
| 64 | + - tzsetup Etc/GMT |
| 65 | + - adjkerntz -a |
| 66 | + |
| 67 | + - curl -o binaries-8.10.7.tar.xz -L https://api.cirrus-ci.com/v1/artifact/build/${CIRRUS_BUILD_ID}/build-ghc-8.10.7/binaries/out.tar.xz |
| 68 | + - tar xvf binaries-8.10.7.tar.xz |
| 69 | + - rm -f binaries-8.10.7.tar.xz |
| 70 | + |
| 71 | + - curl -o binaries-9.0.2.tar.xz -L https://api.cirrus-ci.com/v1/artifact/build/${CIRRUS_BUILD_ID}/build-ghc-9.0.2/binaries/out.tar.xz |
| 72 | + - tar xvf binaries-9.0.2.tar.xz |
| 73 | + - rm -f binaries-9.0.2.tar.xz |
| 74 | + |
| 75 | + - curl -o binaries-9.2.5.tar.xz -L https://api.cirrus-ci.com/v1/artifact/build/${CIRRUS_BUILD_ID}/build-ghc-9.2.5/binaries/out.tar.xz |
| 76 | + - tar xvf binaries-9.2.5.tar.xz |
| 77 | + - rm -f binaries-9.2.5.tar.xz |
| 78 | + |
| 79 | + - curl -o binaries-9.2.7.tar.xz -L https://api.cirrus-ci.com/v1/artifact/build/${CIRRUS_BUILD_ID}/build-ghc-9.2.7/binaries/out.tar.xz |
| 80 | + - tar xvf binaries-9.2.7.tar.xz |
| 81 | + - rm -f binaries-9.2.7.tar.xz |
| 82 | + |
| 83 | + - bash .github/scripts/bindist.sh |
| 84 | + bindist_artifacts: |
| 85 | + path: "./out/*.tar.xz" |
| 86 | + |
| 87 | +test_task: |
| 88 | + name: test |
| 89 | + depends_on: |
| 90 | + - bindist |
| 91 | + timeout_in: 120m |
| 92 | + only_if: $CIRRUS_TAG != '' |
| 93 | + env: |
| 94 | + TARBALL_EXT: "tar.xz" |
| 95 | + ARCH: 64 |
| 96 | + ARTIFACT: "x86_64-freebsd" |
| 97 | + DISTRO: "na" |
| 98 | + RUNNER_OS: "FreeBSD" |
| 99 | + GITHUB_WORKSPACE: ${CIRRUS_WORKING_DIR} |
| 100 | + install_script: pkg install -y hs-cabal-install git bash misc/compat10x misc/compat11x misc/compat12x gmake patchelf tree unzip |
| 101 | + script: |
| 102 | + - tzsetup Etc/GMT |
| 103 | + - adjkerntz -a |
| 104 | + |
| 105 | + - curl -O -L https://api.cirrus-ci.com/v1/artifact/build/${CIRRUS_BUILD_ID}/bindist/bindist.zip |
| 106 | + - unzip bindist.zip |
| 107 | + |
| 108 | + - bash .github/scripts/test.sh |
| 109 | + |
0 commit comments