@@ -412,6 +412,50 @@ jobs:
412412 path : |
413413 ./out/*
414414
415+ build-freebsd-x86_64 :
416+ name : Build FreeBSD x86_64
417+ runs-on : [self-hosted, FreeBSD, X64]
418+ env :
419+ ADD_CABAL_ARGS : " "
420+ ARTIFACT : " x86_64-portbld-freebsd"
421+ ARCH : 64
422+ TARBALL_EXT : tar.xz
423+ DISTRO : na
424+ RUNNER_OS : FreeBSD
425+ CABAL_DIR : ${{ github.workspace }}/.cabal
426+ GHCUP_INSTALL_BASE_PREFIX : ${{ github.workspace }}
427+ strategy :
428+ fail-fast : false
429+ matrix :
430+ branch : ${{ fromJSON(inputs.branches) }}
431+ steps :
432+ - uses : actions/checkout@v4
433+ with :
434+ ref : ${{ matrix.branch }}
435+
436+ - name : Install GHCup
437+ uses : haskell/ghcup-setup@v1
438+ with :
439+ cabal : ${{ env.CABAL_VERSION }}
440+
441+ - name : Run build
442+ run : |
443+ sudo sed -i.bak -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
444+ sudo pkg install -y curl gcc gmp gmake ncurses perl5 pkgconf libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x
445+ sudo tzsetup Etc/GMT
446+ sudo adjkerntz -a
447+ bash .github/scripts/build.bash
448+
449+ - if : always()
450+ name : Upload artifact
451+ uses : ./.github/actions/upload
452+ with :
453+ if-no-files-found : error
454+ retention-days : 2
455+ name : artifacts-${{ env.ARTIFACT }}-${{ matrix.branch }}
456+ path : |
457+ ./out/*
458+
415459 test-linux :
416460 name : Test linux binaries
417461 runs-on : ubuntu-latest
@@ -739,3 +783,44 @@ jobs:
739783 C:\msys64\usr\bin\bash -lc "bash .github/scripts/test.bash"
740784 shell : pwsh
741785
786+ test-freebsd-x86_64 :
787+ name : Test FreeBSD x86_64
788+ runs-on : [self-hosted, FreeBSD, X64]
789+ needs : ["build-freebsd-x86_64"]
790+ if : ${{ inputs.test }}
791+ env :
792+ ADD_CABAL_ARGS : " "
793+ ARTIFACT : " x86_64-portbld-freebsd"
794+ ARCH : 64
795+ TARBALL_EXT : tar.xz
796+ DISTRO : na
797+ RUNNER_OS : FreeBSD
798+ CABAL_DIR : ${{ github.workspace }}/.cabal
799+ GHCUP_INSTALL_BASE_PREFIX : ${{ github.workspace }}
800+ strategy :
801+ fail-fast : false
802+ matrix :
803+ branch : ${{ fromJSON(inputs.branches) }}
804+ steps :
805+ - uses : actions/checkout@v4
806+ with :
807+ ref : ${{ matrix.branch }}
808+
809+ - uses : ./.github/actions/download
810+ with :
811+ name : artifacts-${{ env.ARTIFACT }}-${{ matrix.branch }}
812+ path : ./out
813+
814+ - name : Install GHCup
815+ uses : haskell/ghcup-setup@v1
816+ with :
817+ cabal : ${{ env.CABAL_VERSION }}
818+
819+ - name : Run test
820+ run : |
821+ sudo sed -i.bak -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
822+ sudo pkg install -y curl gcc gmp gmake ncurses perl5 pkgconf libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x groff autoconf automake
823+ sudo tzsetup Etc/GMT
824+ sudo adjkerntz -a
825+ bash .github/scripts/test.bash
826+
0 commit comments