@@ -402,6 +402,50 @@ jobs:
402402 path : |
403403 ./out/*
404404
405+ build-freebsd-x86_64 :
406+ name : Build FreeBSD x86_64
407+ runs-on : [self-hosted, FreeBSD, X64]
408+ env :
409+ ADD_CABAL_ARGS : " "
410+ ARTIFACT : " x86_64-portbld-freebsd"
411+ ARCH : 64
412+ TARBALL_EXT : tar.xz
413+ DISTRO : na
414+ RUNNER_OS : FreeBSD
415+ CABAL_DIR : ${{ github.workspace }}/.cabal
416+ GHCUP_INSTALL_BASE_PREFIX : ${{ github.workspace }}
417+ strategy :
418+ fail-fast : false
419+ matrix :
420+ branch : ${{ fromJSON(inputs.branches) }}
421+ steps :
422+ - uses : actions/checkout@v4
423+ with :
424+ ref : ${{ matrix.branch }}
425+
426+ - name : Install GHCup
427+ uses : haskell/ghcup-setup@v1
428+ with :
429+ cabal : ${{ env.CABAL_VERSION }}
430+
431+ - name : Run build
432+ run : |
433+ sudo sed -i.bak -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
434+ sudo pkg install -y ghc hs-cabal-install git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14 libiconv
435+ sudo tzsetup Etc/GMT
436+ sudo adjkerntz -a
437+ bash .github/scripts/build.sh
438+
439+ - if : always()
440+ name : Upload artifact
441+ uses : ./.github/actions/upload
442+ with :
443+ if-no-files-found : error
444+ retention-days : 2
445+ name : artifacts-${{ env.ARTIFACT }}-${{ matrix.branch }}
446+ path : |
447+ ./out/*
448+
405449 test-linux :
406450 name : Test linux binaries
407451 runs-on : ubuntu-latest
@@ -728,3 +772,43 @@ jobs:
728772 C:\msys64\usr\bin\bash -lc "bash .github/scripts/test.sh"
729773 shell : pwsh
730774
775+ test-freebsd-x86_64 :
776+ name : Test FreeBSD x86_64
777+ runs-on : [self-hosted, FreeBSD, X64]
778+ needs : ["build-freebsd-x86_64"]
779+ env :
780+ ADD_CABAL_ARGS : " "
781+ ARTIFACT : " x86_64-portbld-freebsd"
782+ ARCH : 64
783+ TARBALL_EXT : tar.xz
784+ DISTRO : na
785+ RUNNER_OS : FreeBSD
786+ CABAL_DIR : ${{ github.workspace }}/.cabal
787+ GHCUP_INSTALL_BASE_PREFIX : ${{ github.workspace }}
788+ strategy :
789+ fail-fast : false
790+ matrix :
791+ branch : ${{ fromJSON(inputs.branches) }}
792+ steps :
793+ - uses : actions/checkout@v4
794+ with :
795+ ref : ${{ matrix.branch }}
796+
797+ - uses : ./.github/actions/download
798+ with :
799+ name : artifacts-${{ env.ARTIFACT }}-${{ matrix.branch }}
800+ path : ./out
801+
802+ - name : Install GHCup
803+ uses : haskell/ghcup-setup@v1
804+ with :
805+ cabal : ${{ env.CABAL_VERSION }}
806+
807+ - name : Run test
808+ run : |
809+ sudo sed -i.bak -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
810+ sudo pkg install -y ghc hs-cabal-install git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14 libiconv groff autoconf automake
811+ sudo tzsetup Etc/GMT
812+ sudo adjkerntz -a
813+ bash .github/scripts/test.sh
814+
0 commit comments