-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run CI job in a FreeBSD VM * Explanation why the freebsd job is running on macOS
- Loading branch information
Showing
1 changed file
with
24 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 |
---|---|---|
|
@@ -30,6 +30,8 @@ jobs: | |
path: | | ||
${{ steps.setup-haskell-cabal.outputs.cabal-store }} | ||
dist-newstyle | ||
tests/dist-newstyle | ||
bench/dist-newstyle | ||
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.ghc }}- | ||
|
@@ -50,3 +52,25 @@ jobs: | |
cd bench | ||
cabal bench -O0 --benchmark-options "--quick --min-duration=0 --include-first-iter" | ||
build-freebsd: | ||
# This job intentionally is using macOS because at the time of the writing | ||
# Linux and Windows environments don't have the necessary virtualization features. | ||
# See https://github.com/vmactions/freebsd-vm#under-the-hood. | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build | ||
id: build-freebsd | ||
uses: vmactions/[email protected] | ||
with: | ||
usesh: true | ||
prepare: pkg install -y ghc hs-cabal-install | ||
run: | | ||
freebsd-version | ||
cabal update | ||
cabal build | ||
(cd tests; cabal test) | ||
(cd bench; cabal bench -O0 --benchmark-options "--quick --min-duration=0 --include-first-iter") | ||
cabal haddock | ||
cabal sdist all | ||