From 4b7addb28a48b25966becb8edbca2646dbe33cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Sun, 7 Jun 2026 06:54:21 +0800 Subject: [PATCH] fix: Add sys/select.h compat header for MinGW build (#2158) * fix: Add sys/select.h compat header for MinGW build * feat: Add OpenBSD build to GitHub Actions CI --- .github/workflows/build-release.yml | 12 ++++++++---- 3rd/compat-mingw/sys/select.h | 3 +++ 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 3rd/compat-mingw/sys/select.h diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 6ae61c0a..f4771641 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -36,6 +36,11 @@ jobs: container: debian:13 target: freebsd artifact: skynet-freebsd.zip + - platform: openbsd + os: ubuntu-latest + container: debian:13 + target: openbsd + artifact: skynet-openbsd.zip container: ${{ matrix.container }} @@ -70,10 +75,9 @@ jobs: # Install any additional dependencies if needed brew install autoconf automake libtool || true - - name: Install dependencies (FreeBSD) - if: matrix.platform == 'freebsd' + - name: Install dependencies (FreeBSD/OpenBSD) + if: matrix.platform == 'freebsd' || matrix.platform == 'openbsd' run: | - # FreeBSD build using standard build tools (cross-compilation compatible) apt-get update apt-get install -y --no-install-recommends \ build-essential \ @@ -148,7 +152,7 @@ jobs: run: | mkdir -p release-assets # Copy zip files from artifact directories to release assets - for artifact in skynet-windows.zip skynet-linux.zip skynet-macosx.zip skynet-freebsd.zip; do + for artifact in skynet-windows.zip skynet-linux.zip skynet-macosx.zip skynet-freebsd.zip skynet-openbsd.zip; do if [ -d "artifacts/${artifact}" ]; then # The artifacts are already organized, just copy them cp -r "artifacts/${artifact}/"* "release-assets/" 2>/dev/null || true diff --git a/3rd/compat-mingw/sys/select.h b/3rd/compat-mingw/sys/select.h new file mode 100644 index 00000000..38d7fcad --- /dev/null +++ b/3rd/compat-mingw/sys/select.h @@ -0,0 +1,3 @@ +#pragma once + +#include