Skip to content

Commit ca184c2

Browse files
hasufellBodigrim
authored andcommitted
Add FreeBSD CI
1 parent e0641c2 commit ca184c2

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/freebsd.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: FreeBSD CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
freebsd:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
- os: [self-hosted, FreeBSD, X64]
17+
ghc: 9.4.8
18+
- os: [self-hosted, FreeBSD, X64]
19+
ghc: 9.6.4
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v3
23+
24+
- name: Run build
25+
run: |
26+
pkg install -y curl gcc gmp gmake ncurses perl5 libffi libiconv git bash misc/compat10x misc/compat11x misc/compat12x gmake llvm14 bzip2
27+
export RUNNER_OS=FreeBSD
28+
export GHCUP_INSTALL_BASE_PREFIX="$GITHUB_WORKSPACE"
29+
export GHCUP_BIN="$GHCUP_INSTALL_BASE_PREFIX/.ghcup/bin"
30+
export PATH="$GHCUP_BIN:$HOME/.local/bin:$PATH"
31+
export CABAL_DIR="$GITHUB_WORKSPACE/cabal"
32+
export TAR_TEST_FILE="${CABAL_DIR}/packages/hackage.haskell.org/01-index.tar"
33+
export TMPDIR="${GITHUB_WORKSPACE}/tmp"
34+
export BOOTSTRAP_HASKELL_NONINTERACTIVE=1
35+
export BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1
36+
export BOOTSTRAP_HASKELL_GHC_VERSION=${{ matrix.ghc }}
37+
export BOOTSTRAP_HASKELL_ADJUST_BASHRC=yes
38+
mkdir -p "${TMPDIR}"
39+
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
40+
cabal test all
41+
cabal bench all
42+
bash htar/test-large-files.sh
43+

0 commit comments

Comments
 (0)