Skip to content

Commit 89cc446

Browse files
committed
Add FreeBSD to tests, fix hashing for lint cache
1 parent 4c0c14f commit 89cc446

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
./hlint/dist-newstyle
4949
./ormolu/dist-newstyle
5050
./cabal-fmt/dist-newstyle
51-
key: ${{ env.V }}-${{ hashFiles('./hlint/cabal.project.freeze', './ormolu/cabal.project/freeze', './cabal-fmt/cabal.project.freeze') }}
51+
key: ${{ env.V }}-${{ hashFiles('./cabal-fmt/cabal.project.freeze') }}
5252
restore-keys: ${{ env.V }}-
5353
- name: Install cabal-fmt
5454
working-directory: cabal-fmt
@@ -114,3 +114,26 @@ jobs:
114114
run: |
115115
~/.ghcup/bin/cabal update
116116
~/.ghcup/bin/cabal build -w ~/.ghcup/bin/ghc
117+
freebsd:
118+
name: "Emulated: GHC ${{ matrix.ghc }} on FreeBSD"
119+
runs-on: macos-10.15
120+
strategy:
121+
matrix:
122+
ghc: ['9.0.1'] # 8.10.7 is vulnerable to a bug, no 9.2.1 on FreeBSD yet
123+
steps:
124+
- name: Checkout base repo
125+
uses: actions/[email protected]
126+
- name: Build
127+
uses: vmactions/[email protected]
128+
with:
129+
usesh: true
130+
prepare: |
131+
pkg install -y autotools gmp curl gmake ncurses libffi pkgconf
132+
ln -s /lib/ffi.so.7 /lib/ffi.so.6
133+
curl -JL https://downloads.haskell.org/~ghcup/0.1.17.4/x86_64-freebsd13-ghcup-0.1.17.4 > ghcup
134+
chmod +x ghcup
135+
./ghcup -v install ghc --set ${{ matrix.ghc }}
136+
./ghcup -v install cabal --set
137+
run: |
138+
~/.ghcup/bin/cabal update
139+
~/.ghcup/bin/cabal build -w ~/.ghcup/bin/ghc

0 commit comments

Comments
 (0)