Skip to content

Commit dc68962

Browse files
committed
Add FreeBSD releases
1 parent 29565a4 commit dc68962

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
@@ -408,6 +408,50 @@ jobs:
408408
path: |
409409
./out/*
410410
411+
build-freebsd-x86_64:
412+
name: Build FreeBSD x86_64
413+
runs-on: [self-hosted, FreeBSD, X64]
414+
env:
415+
ADD_CABAL_ARGS: ""
416+
ARTIFACT: "x86_64-portbld-freebsd"
417+
ARCH: 64
418+
TARBALL_EXT: tar.xz
419+
DISTRO: na
420+
RUNNER_OS: FreeBSD
421+
CABAL_DIR: ${{ github.workspace }}/.cabal
422+
GHCUP_INSTALL_BASE_PREFIX: ${{ github.workspace }}
423+
strategy:
424+
fail-fast: false
425+
matrix:
426+
branch: ${{ fromJSON(inputs.branches) }}
427+
steps:
428+
- uses: actions/checkout@v4
429+
with:
430+
ref: ${{ matrix.branch }}
431+
432+
- name: Install GHCup
433+
uses: haskell/ghcup-setup@v1
434+
with:
435+
cabal: ${{ env.CABAL_VERSION }}
436+
437+
- name: Run build
438+
run: |
439+
sudo sed -i.bak -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
440+
sudo pkg install -y ghc hs-cabal-install git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14 libiconv
441+
sudo tzsetup Etc/GMT
442+
sudo adjkerntz -a
443+
bash .github/scripts/build.sh
444+
445+
- if: always()
446+
name: Upload artifact
447+
uses: ./.github/actions/upload
448+
with:
449+
if-no-files-found: error
450+
retention-days: 2
451+
name: artifacts-${{ env.ARTIFACT }}-${{ matrix.branch }}
452+
path: |
453+
./out/*
454+
411455
test-linux:
412456
name: Test linux binaries
413457
runs-on: ubuntu-latest
@@ -734,3 +778,43 @@ jobs:
734778
C:\msys64\usr\bin\bash -lc "bash .github/scripts/test.sh"
735779
shell: pwsh
736780

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

0 commit comments

Comments
 (0)