Skip to content

Commit 87a4147

Browse files
authored
Merge pull request #108 from haskellari/bsd-ci
More CI jobs
2 parents 3e54d3b + 652e531 commit 87a4147

File tree

2 files changed

+85
-3
lines changed

2 files changed

+85
-3
lines changed

.github/workflows/bsd.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
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
47+
48+
netbsd:
49+
name: NetBSD
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v4
54+
55+
- name: Test in NetBSD
56+
id: test
57+
uses: vmactions/netbsd-vm@v1
58+
with:
59+
release: "10.1"
60+
usesh: true
61+
prepare: |
62+
/usr/sbin/pkg_add ghc cabal-install
63+
64+
run: |
65+
cd $GITHUB_WORKSPACE;
66+
pwd
67+
ls -lah
68+
whoami
69+
env
70+
/sbin/sysctl hw.model
71+
/sbin/sysctl hw.ncpu
72+
/sbin/sysctl hw.physmem
73+
/sbin/sysctl hw.usermem
74+
/usr/bin/vmstat
75+
76+
ghc --version
77+
cabal --version
78+
79+
cabal update
80+
cabal build all --enable-tests --dry-run
81+
cabal build all --enable-tests
82+
cabal test all --enable-tests --test-show-details=direct

.github/workflows/simple.yml renamed to .github/workflows/macwin.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Simple
1+
name: MacWin
22
on:
33
push:
44
branches:
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
native:
12-
name: "Simple: GHC ${{ matrix.ghc }} on ${{ matrix.os }}"
12+
name: "GHC ${{ matrix.ghc }} on ${{ matrix.os }}"
1313
runs-on: ${{ matrix.os }}
1414
strategy:
1515
matrix:
@@ -24,7 +24,7 @@ jobs:
2424
git config --global core.eol lf
2525
2626
- name: Checkout
27-
uses: actions/checkout@v3.0.2
27+
uses: actions/checkout@v4
2828

2929
- name: Set up Haskell
3030
id: setup-haskell

0 commit comments

Comments
 (0)