Skip to content

Commit 108c974

Browse files
committed
Add FreeBSD releases
1 parent 259e199 commit 108c974

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

.github/workflows/reusable-release.yml

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

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

0 commit comments

Comments
 (0)