CI: added openbsd build

This commit is contained in:
SChernykh 2023-02-16 10:43:12 +01:00
parent ed59579a9d
commit 39216df8eb
2 changed files with 44 additions and 1 deletions

View file

@ -416,3 +416,46 @@ jobs:
with: with:
name: p2pool-${{ matrix.os.name }}-${{ matrix.os.version }} name: p2pool-${{ matrix.os.name }}-${{ matrix.os.version }}
path: build/p2pool 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

View file

@ -176,7 +176,7 @@ INT_ENTRY(uint16_t)
INT_ENTRY(uint32_t) INT_ENTRY(uint32_t)
INT_ENTRY(uint64_t) INT_ENTRY(uint64_t)
#ifdef __APPLE__ #if defined(__APPLE__) || defined(__OpenBSD__)
INT_ENTRY(long) INT_ENTRY(long)
INT_ENTRY(unsigned long) INT_ENTRY(unsigned long)
#endif #endif