Skip to content

Commit

Permalink
Run CI job in a FreeBSD VM (haskell#322)
Browse files Browse the repository at this point in the history
* Run CI job in a FreeBSD VM

* Explanation why the freebsd job is running on macOS
  • Loading branch information
ethercrow authored and Bodigrim committed Nov 17, 2020
1 parent e910902 commit 2d02cd3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}-
Expand All @@ -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

0 comments on commit 2d02cd3

Please sign in to comment.