-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from tchoutri/use-cirrus-for-bsd-ci
Start FreeBSD CI
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
task: | ||
name: FreeBSD | ||
freebsd_instance: | ||
image_family: freebsd-14-0 | ||
install_script: pkg install -y ghc hs-cabal-install git autoconf bash | ||
script: | ||
- ./.cirrus/ci.sh build_freebd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xEeuo pipefail | ||
|
||
build_freebsd() { | ||
export GHCUP_INSTALL_BASE_PREFIX="/opt/ghc/" | ||
mkdir -p ~/.local/ghcup/bin/ | ||
curl -L https://downloads.haskell.org/~ghcup/x86_64-portbld-freebsd-ghcup --output /opt/ghcup/bin/ghcup | ||
chmod +x /opt/ghcup/bin/ghcup | ||
ghcup install ghc 9.8.2 | ||
ghcup set ghc 9.8.2 | ||
ghcup install cabal 3.12.1.0 | ||
} | ||
|
||
help() { | ||
echo "Run with \`build_freebsd\`" | ||
} | ||
|
||
case ${1:-help} in | ||
help) help ;; | ||
build_frebsd) build_freebsd ;; | ||
|
||
esac |