Skip to content

Commit 62dccdf

Browse files
committed
Add FreeBSD job
1 parent 4ade4aa commit 62dccdf

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/bsd.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: BSD
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
freebsd:
12+
name: FreeBSD
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Test in FreeBSD
19+
id: test
20+
uses: vmactions/freebsd-vm@v1
21+
with:
22+
release: "14.3"
23+
usesh: true
24+
prepare: |
25+
# pkg-static update
26+
# pkg-static upgrade -y pkg
27+
pkg install -y ghc hs-cabal-install
28+
29+
run: |
30+
pwd
31+
ls -lah
32+
whoami
33+
env
34+
freebsd-version
35+
sysctl hw.model
36+
sysctl hw.ncpu
37+
sysctl hw.physmem
38+
sysctl hw.usermem
39+
40+
ghc --version
41+
cabal --version
42+
43+
cabal update
44+
cabal build all --enable-tests --dry-run
45+
cabal build all --enable-tests
46+
cabal test all --enable-tests --test-show-details=direct

0 commit comments

Comments
 (0)