From 999be172de0922fe2c962d0e3126579e7bf78bfa Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 16 Nov 2023 21:45:09 +0800 Subject: [PATCH 1/2] Try to bump GHC versions for cabal build --- .github/workflows/cabal-release.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cabal-release.yaml b/.github/workflows/cabal-release.yaml index 4c2e9ab..4cac8ec 100644 --- a/.github/workflows/cabal-release.yaml +++ b/.github/workflows/cabal-release.yaml @@ -24,7 +24,7 @@ jobs: ARCH: 64 DEBIAN_FRONTEND: noninteractive TZ: Asia/Singapore - GHC_VERSION: 9.2.3 + GHC_VERSION: 9.2.8 strategy: fail-fast: false matrix: @@ -198,7 +198,7 @@ jobs: TZ: Asia/Singapore ARCH: ARM64 DISTRO: Ubuntu - GHC_VERSION: 9.2.2 + GHC_VERSION: 9.2.8 strategy: fail-fast: false matrix: @@ -261,7 +261,7 @@ jobs: ARCH: 64 TARBALL_EXT: tar.xz DISTRO: na - GHC_VERSION: 9.2.3 + GHC_VERSION: 9.2.8 steps: - uses: actions/checkout@v3 with: @@ -294,7 +294,7 @@ jobs: TARBALL_EXT: tar.xz DISTRO: na HOMEBREW_CHANGE_ARCH_TO_ARM: 1 - GHC_VERSION: 9.2.3 + GHC_VERSION: 9.2.8 steps: - uses: actions/checkout@v3 with: @@ -327,7 +327,7 @@ jobs: ARCH: 64 TARBALL_EXT: "zip" DISTRO: na - GHC_VERSION: 9.2.3 + GHC_VERSION: 9.2.8 steps: - name: install windows deps shell: pwsh From f755827e5e782aa251f6eb1d5186dccc77913cc1 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 17 Nov 2023 20:21:35 +0800 Subject: [PATCH 2/2] Add cirrus --- .cirrus.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 0000000..89590f5 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,33 @@ +# release CI for FreeBSD +compute_engine_instance: + image_project: freebsd-org-cloud-dev + image: family/freebsd-13-2 + platform: freebsd + disk: 100 # Gb + +build_task: + timeout_in: 120m + only_if: $CIRRUS_TAG != '' + env: + ADD_CABAL_ARGS: "--enable-split-sections" + ARCH: 64 + ARTIFACT: "x86_64-portbld-freebsd" + CIRRUS_CLONE_SUBMODULES: true + DISTRO: na + GHC_VERSION: 9.2.4 + GITHUB_WORKSPACE: ${CIRRUS_WORKING_DIR} + RUNNER_OS: FreeBSD + TARBALL_EXT: tar.xz + TZ: Asia/Singapore + install_script: + - sed -i.bak -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf + - pkg install -y ghc hs-cabal-install git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14 patchelf tree gmp libiconv + script: + - tzsetup Etc/GMT + - adjkerntz -a + - git clone --branch cabal-install-v3.6.2.0-p1 https://github.com/hasufell/cabal.git + - cd cabal/ + - bash .github/scripts/build.sh + binaries_artifacts: + path: "cabal/out/*" +