diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index a8aa6aa..5c03afd 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -416,3 +416,46 @@ jobs: with: name: p2pool-${{ matrix.os.name }}-${{ matrix.os.version }} path: build/p2pool + + build-openbsd: + + timeout-minutes: 75 + runs-on: ${{ matrix.os.host }} + + strategy: + matrix: + os: + - name: openbsd + architecture: x86-64 + version: '7.2' + host: ubuntu-22.04 + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Build p2pool + uses: cross-platform-actions/action@v0.10.0 + with: + operating_system: ${{ matrix.os.name }} + architecture: ${{ matrix.os.architecture }} + version: ${{ matrix.os.version }} + shell: bash + run: | + sudo pkg_add -I cmake libuv zeromq curl + mkdir build && cd build + cmake .. + make -j2 + cd ../tests + mkdir build && cd build + cmake .. + make -j2 + ./p2pool_tests + + - name: Archive binary + uses: actions/upload-artifact@v3 + with: + name: p2pool-${{ matrix.os.name }}-${{ matrix.os.version }} + path: build/p2pool diff --git a/src/log.h b/src/log.h index fc371de..6a09a09 100644 --- a/src/log.h +++ b/src/log.h @@ -176,7 +176,7 @@ INT_ENTRY(uint16_t) INT_ENTRY(uint32_t) INT_ENTRY(uint64_t) -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(__OpenBSD__) INT_ENTRY(long) INT_ENTRY(unsigned long) #endif