Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start FreeBSD CI #19

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .cirrus.yml
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
23 changes: 23 additions & 0 deletions .cirrus/ci.sh
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
Loading