Skip to content

Commit fd56d81

Browse files
committed
add bsd ci
1 parent a824bf9 commit fd56d81

File tree

6 files changed

+171
-0
lines changed

6 files changed

+171
-0
lines changed

.github/workflows/dragonflybsd.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: DragonflyBSD
2+
3+
on:
4+
pull_request:
5+
push:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
concurrency:
15+
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-DragonflyBSD
16+
cancel-in-progress: true
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: true
21+
22+
- name: Tests
23+
id: test
24+
uses: vmactions/dragonflybsd-vm@v1
25+
with:
26+
usesh: true
27+
prepare: |
28+
pkg install -y socat git gmake bash
29+
run: |
30+
cd $GITHUB_WORKSPACE
31+
./configure
32+
gmake -j4
33+
gmake run
34+

.github/workflows/freebsd.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: FreeBSD
2+
3+
on:
4+
pull_request:
5+
push:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
concurrency:
15+
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-FreeBSD
16+
cancel-in-progress: true
17+
steps:
18+
- uses: actions/checkout@v2
19+
with:
20+
submodules: true
21+
22+
- name: Tests
23+
uses: vmactions/freebsd-vm@v1
24+
with:
25+
usesh: true
26+
mem: 4096
27+
copyback: false
28+
prepare: pkg install -y git curl unzip gmake llvm gsed bash perl5
29+
run: |
30+
./configure
31+
gmake -j4
32+
gmake run
33+

.github/workflows/netbsd.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: NetBSD
2+
3+
on:
4+
pull_request:
5+
push:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
concurrency:
15+
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-NetBSD
16+
cancel-in-progress: true
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: true
21+
22+
- name: Tests
23+
id: test
24+
uses: vmactions/netbsd-vm@v1
25+
with:
26+
usesh: true
27+
prepare: |
28+
/usr/sbin/pkg_add curl bash git gmake
29+
run: |
30+
cd $GITHUB_WORKSPACE
31+
./configure
32+
gmake -j4
33+
gmake run
34+

.github/workflows/openbsd.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: OpenBSD
2+
3+
on:
4+
pull_request:
5+
push:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
concurrency:
15+
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-OpenBSD
16+
cancel-in-progress: true
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: true
21+
22+
- name: Tests
23+
id: test
24+
uses: vmactions/openbsd-vm@v1
25+
with:
26+
usesh: true
27+
prepare: |
28+
pkg_add curl git gmake bash
29+
run: |
30+
cd $GITHUB_WORKSPACE
31+
./configure
32+
gmake -j4
33+
gmake run
34+

.github/workflows/solaris.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Solaris
2+
3+
on:
4+
pull_request:
5+
push:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
concurrency:
15+
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Solaris
16+
cancel-in-progress: true
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: true
21+
22+
- name: Tests
23+
id: test
24+
uses: vmactions/solaris-vm@v1
25+
with:
26+
usesh: true
27+
prepare: |
28+
pkgutil -y -i socat git gmake gcc
29+
run: |
30+
cd $GITHUB_WORKSPACE
31+
./configure
32+
gmake -j4
33+
gmake run
34+

src/xmake.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ if is_plat "mingw" "msys" "cygwin"; then
3737
add_syslinks "ws2_32" "pthread" "m"
3838
elif is_plat "haiku"; then
3939
add_syslinks "pthread" "network" "m" "c"
40+
elif is_plat "bsd"; then
41+
add_syslinks "pthread" "m"
4042
else
4143
add_syslinks "pthread" "dl" "m" "c"
4244
fi

0 commit comments

Comments
 (0)