Skip to content

Commit

Permalink
Add FreeBSD to tests, fix hashing for lint cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kozross committed Jan 27, 2022
1 parent 4c0c14f commit eb0a6ef
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
./hlint/dist-newstyle
./ormolu/dist-newstyle
./cabal-fmt/dist-newstyle
key: ${{ env.V }}-${{ hashFiles('./hlint/cabal.project.freeze', './ormolu/cabal.project/freeze', './cabal-fmt/cabal.project.freeze') }}
key: ${{ env.V }}-${{ hashFiles('./cabal-fmt/cabal.project.freeze') }}
restore-keys: ${{ env.V }}-
- name: Install cabal-fmt
working-directory: cabal-fmt
Expand Down Expand Up @@ -114,3 +114,26 @@ jobs:
run: |
~/.ghcup/bin/cabal update
~/.ghcup/bin/cabal build -w ~/.ghcup/bin/ghc
freebsd:
name: "Emulated: GHC ${{ matrix.ghc }} on FreeBSD"
runs-on: macos-10.15
strategy:
matrix:
ghc: ['9.0.1'] # 8.10.7 is vulnerable to a bug, no 9.2.1 on FreeBSD yet
steps:
- name: Checkout base repo
uses: actions/[email protected]
- name: Build
uses: vmactions/[email protected]
with:
usesh: true
prepare: |
pkg install -y autotools gmp curl gmake ncurses libffi pkgconf
ln -s /lib/libffi.so.7 /lib/libffi.so.6
curl -JL https://downloads.haskell.org/~ghcup/0.1.17.4/x86_64-freebsd13-ghcup-0.1.17.4 > ghcup
chmod +x ghcup
./ghcup -v install ghc --set ${{ matrix.ghc }}
./ghcup -v install cabal --set
run: |
~/.ghcup/bin/cabal update
~/.ghcup/bin/cabal build -w ~/.ghcup/bin/ghc

0 comments on commit eb0a6ef

Please sign in to comment.