From 86a9238f76a9a5dde4c0d56e976d2c1862cd6bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 18 Mar 2024 09:58:19 +0100 Subject: [PATCH 1/3] Add Github CI for Haiku clang 17 doesn't work as expected on x86. --- .github/workflows/haiku.yaml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/haiku.yaml diff --git a/.github/workflows/haiku.yaml b/.github/workflows/haiku.yaml new file mode 100644 index 000000000..89274a0e9 --- /dev/null +++ b/.github/workflows/haiku.yaml @@ -0,0 +1,37 @@ +name: "haiku-ci" +on: [push, pull_request] + +jobs: + build-haiku: + timeout-minutes: 60 + runs-on: ${{ matrix.config.runner }} + name: build-${{ matrix.config.os }}-${{ matrix.config.version }}-${{ matrix.config.architecture }} + + strategy: + fail-fast: false + matrix: + config: + # The OS versions supported are specific to the version of the action + # https://github.com/cross-platform-actions/action/blob/master/changelog.md + - { os: haiku, version: 'r1beta4', runner: 'ubuntu-latest', architecture: 'x86-64' } + - { os: haiku, version: 'r1beta4', runner: 'ubuntu-latest', architecture: 'x86' } + + steps: + - uses: actions/checkout@v4 + + - uses: korli/action@v0.23.0-haiku + with: + operating_system: ${{ matrix.config.os }} + version: ${{ matrix.config.version }} + architecture: ${{ matrix.config.architecture }} + run: | + ssh user@localhost "chmod 777 /tmp/; pkgman update -y cmd:git cmd:autoconf cmd:cmake cmd:make cmd:clang_16 cmd:ld.lld>=16" && + git -C .. clone --depth 3 --branch=master --quiet https://github.com/the-tcpdump-group/libpcap.git && + export LDFLAGS="-Wl,--disable-new-dtags" && + if [[ `uname -m` == BePC ]]; then + ssh user@localhost "pkgman update -y cmd:gcc_x86 cmd:pkg_config_x86 devel:libpcap_x86 gcc_x86_syslibs_devel" && + setarch x86 ./build_matrix.sh + else + ssh user@localhost "pkgman update -y cmd:gcc cmd:pkg_config devel:libpcap gcc_syslibs_devel" && + ./build_matrix.sh + fi From b5ad077c07c15a90b81737b01da6f5e0242e999a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 14 Jan 2025 07:30:16 +0100 Subject: [PATCH 2/3] haiku.yaml: switch to r1beta5 and llvm17 --- .github/workflows/haiku.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/haiku.yaml b/.github/workflows/haiku.yaml index 89274a0e9..37b2ec3d9 100644 --- a/.github/workflows/haiku.yaml +++ b/.github/workflows/haiku.yaml @@ -13,19 +13,19 @@ jobs: config: # The OS versions supported are specific to the version of the action # https://github.com/cross-platform-actions/action/blob/master/changelog.md - - { os: haiku, version: 'r1beta4', runner: 'ubuntu-latest', architecture: 'x86-64' } - - { os: haiku, version: 'r1beta4', runner: 'ubuntu-latest', architecture: 'x86' } + - { os: haiku, version: 'r1beta5', runner: 'ubuntu-latest', architecture: 'x86-64' } + - { os: haiku, version: 'r1beta5', runner: 'ubuntu-latest', architecture: 'x86' } steps: - uses: actions/checkout@v4 - - uses: korli/action@v0.23.0-haiku + - uses: korli/action@v0.25.0-haiku1 with: operating_system: ${{ matrix.config.os }} version: ${{ matrix.config.version }} architecture: ${{ matrix.config.architecture }} run: | - ssh user@localhost "chmod 777 /tmp/; pkgman update -y cmd:git cmd:autoconf cmd:cmake cmd:make cmd:clang_16 cmd:ld.lld>=16" && + ssh user@localhost "chmod 777 /tmp/; pkgman update -y cmd:git cmd:autoconf cmd:cmake cmd:make cmd:clang_17 cmd:ld.lld>=17" && git -C .. clone --depth 3 --branch=master --quiet https://github.com/the-tcpdump-group/libpcap.git && export LDFLAGS="-Wl,--disable-new-dtags" && if [[ `uname -m` == BePC ]]; then From 93571b6e8044c20ffc878f8e56a92b6c5d4171f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 20 Feb 2025 09:23:01 +0100 Subject: [PATCH 3/3] haiku.yaml: add nightly builds --- .github/workflows/haiku.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/haiku.yaml b/.github/workflows/haiku.yaml index 37b2ec3d9..f738e630e 100644 --- a/.github/workflows/haiku.yaml +++ b/.github/workflows/haiku.yaml @@ -15,11 +15,12 @@ jobs: # https://github.com/cross-platform-actions/action/blob/master/changelog.md - { os: haiku, version: 'r1beta5', runner: 'ubuntu-latest', architecture: 'x86-64' } - { os: haiku, version: 'r1beta5', runner: 'ubuntu-latest', architecture: 'x86' } - + - { os: haiku, version: 'hrev58647', runner: 'ubuntu-latest', architecture: 'x86-64' } + - { os: haiku, version: 'hrev58647', runner: 'ubuntu-latest', architecture: 'x86' } steps: - uses: actions/checkout@v4 - - uses: korli/action@v0.25.0-haiku1 + - uses: korli/action@v0.25.0-haiku2 with: operating_system: ${{ matrix.config.os }} version: ${{ matrix.config.version }}