Skip to content

Commit 7a147ee

Browse files
committed
Add FreeBSD releases
1 parent b1a2956 commit 7a147ee

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

.github/workflows/reusable-release.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,50 @@ jobs:
401401
path: |
402402
./out/*
403403
404+
build-freebsd-x86_64:
405+
name: Build FreeBSD x86_64
406+
runs-on: [self-hosted, FreeBSD, X64]
407+
env:
408+
ADD_CABAL_ARGS: ""
409+
ARTIFACT: "x86_64-portbld-freebsd"
410+
ARCH: 64
411+
TARBALL_EXT: tar.xz
412+
DISTRO: na
413+
RUNNER_OS: FreeBSD
414+
CABAL_DIR: ${{ github.workspace }}/.cabal
415+
GHCUP_INSTALL_BASE_PREFIX: ${{ github.workspace }}
416+
strategy:
417+
fail-fast: false
418+
matrix:
419+
branch: ${{ fromJSON(inputs.branches) }}
420+
steps:
421+
- uses: actions/checkout@v4
422+
with:
423+
ref: ${{ matrix.branch }}
424+
425+
- name: Install GHCup
426+
uses: haskell/ghcup-setup@v1
427+
with:
428+
cabal: ${{ env.CABAL_VERSION }}
429+
430+
- name: Run build
431+
run: |
432+
sudo sed -i.bak -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
433+
sudo pkg install -y ghc hs-cabal-install git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14 libiconv
434+
sudo tzsetup Etc/GMT
435+
sudo adjkerntz -a
436+
bash .github/scripts/build.sh
437+
438+
- if: always()
439+
name: Upload artifact
440+
uses: ./.github/actions/upload
441+
with:
442+
if-no-files-found: error
443+
retention-days: 2
444+
name: artifacts-${{ env.ARTIFACT }}-${{ matrix.branch }}
445+
path: |
446+
./out/*
447+
404448
test-linux:
405449
name: Test linux binaries
406450
runs-on: ubuntu-latest
@@ -727,3 +771,43 @@ jobs:
727771
C:\msys64\usr\bin\bash -lc "bash .github/scripts/test.sh"
728772
shell: pwsh
729773

774+
test-freebsd-x86_64:
775+
name: Test FreeBSD x86_64
776+
runs-on: [self-hosted, FreeBSD, X64]
777+
needs: ["build-freebsd-x86_64"]
778+
env:
779+
ADD_CABAL_ARGS: ""
780+
ARTIFACT: "x86_64-portbld-freebsd"
781+
ARCH: 64
782+
TARBALL_EXT: tar.xz
783+
DISTRO: na
784+
RUNNER_OS: FreeBSD
785+
CABAL_DIR: ${{ github.workspace }}/.cabal
786+
GHCUP_INSTALL_BASE_PREFIX: ${{ github.workspace }}
787+
strategy:
788+
fail-fast: false
789+
matrix:
790+
branch: ${{ fromJSON(inputs.branches) }}
791+
steps:
792+
- uses: actions/checkout@v4
793+
with:
794+
ref: ${{ matrix.branch }}
795+
796+
- uses: ./.github/actions/download
797+
with:
798+
name: artifacts-${{ env.ARTIFACT }}-${{ matrix.branch }}
799+
path: ./out
800+
801+
- name: Install GHCup
802+
uses: haskell/ghcup-setup@v1
803+
with:
804+
cabal: ${{ env.CABAL_VERSION }}
805+
806+
- name: Run test
807+
run: |
808+
sudo sed -i.bak -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
809+
sudo pkg install -y ghc hs-cabal-install git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14 libiconv groff autoconf automake
810+
sudo tzsetup Etc/GMT
811+
sudo adjkerntz -a
812+
bash .github/scripts/test.sh
813+

0 commit comments

Comments
 (0)