Skip to content

Commit c3b58f2

Browse files
committed
Add Github CI for Haiku
clang 17 doesn't work as expected on x86.
1 parent 58b5947 commit c3b58f2

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/haiku.yaml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "haiku-ci"
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build-haiku:
6+
timeout-minutes: 60
7+
runs-on: ${{ matrix.config.runner }}
8+
name: build-${{ matrix.config.os }}-${{ matrix.config.version }}-${{ matrix.config.architecture }}
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
config:
14+
# The OS versions supported are specific to the version of the action
15+
# https://github.com/cross-platform-actions/action/blob/master/changelog.md
16+
- { os: haiku, version: 'r1beta4', runner: 'ubuntu-latest', architecture: 'x86-64' }
17+
- { os: haiku, version: 'r1beta4', runner: 'ubuntu-latest', architecture: 'x86' }
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: korli/[email protected]
23+
with:
24+
operating_system: ${{ matrix.config.os }}
25+
version: ${{ matrix.config.version }}
26+
architecture: ${{ matrix.config.architecture }}
27+
run: |
28+
ssh user@localhost "chmod 777 /tmp/; pkgman update -y cmd:git cmd:autoconf cmd:cmake cmd:make cmd:clang_16 cmd:ld.lld>=16" &&
29+
git -C .. clone --depth 3 --branch=master --quiet https://github.com/the-tcpdump-group/libpcap.git &&
30+
export LDFLAGS="-Wl,--disable-new-dtags" &&
31+
if [[ `uname -m` == BePC ]]; then
32+
ssh user@localhost "pkgman update -y cmd:gcc_x86 cmd:pkg_config_x86 devel:libpcap_x86 gcc_x86_syslibs_devel" &&
33+
setarch x86 ./build_matrix.sh
34+
else
35+
ssh user@localhost "pkgman update -y cmd:gcc cmd:pkg_config devel:libpcap gcc_syslibs_devel" &&
36+
./build_matrix.sh
37+
fi

0 commit comments

Comments
 (0)