From 9dfbf09cb0edb331d0ec6b04a23095fc348c0c13 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sat, 3 Feb 2024 17:32:24 +0800 Subject: [PATCH] Add FreeBSD --- .github/workflows/test.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5ba57a3..560c404 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -81,3 +81,24 @@ jobs: cabal update cabal test --test-show-details=direct + freebsd: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - os: [self-hosted, FreeBSD, X64] + ghc: 9.4.8 + - os: [self-hosted, FreeBSD, X64] + ghc: 9.6.4 + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Run build + run: | + pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14 + . .github/scripts/env.sh + curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 BOOTSTRAP_HASKELL_GHC_VERSION=${{ matrix.ghc }} BOOTSTRAP_HASKELL_ADJUST_BASHRC=yes sh + cabal test --test-show-details=direct +