From 93656ff16f12cb76fca9fff085a7a495ded82013 Mon Sep 17 00:00:00 2001 From: Brad House Date: Wed, 8 May 2024 06:28:57 -0400 Subject: [PATCH] CI: OpenBSD (#755) Github actions appears to support building on a few "unsupported" platforms these days: https://github.com/cross-platform-actions/action Lets go ahead and add OpenBSD to try to prevent issues like #754 Fix By: Brad House (@bradh352) --- .github/workflows/openbsd.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/openbsd.yml diff --git a/.github/workflows/openbsd.yml b/.github/workflows/openbsd.yml new file mode 100644 index 00000000..f125a916 --- /dev/null +++ b/.github/workflows/openbsd.yml @@ -0,0 +1,32 @@ +# Copyright (C) The c-ares project and its contributors +# SPDX-License-Identifier: MIT +name: OpenBSD + +on: [push] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Test + uses: cross-platform-actions/action@v0.24.0 + env: + DIST: OPENBSD + BUILD_TYPE: "cmake" + CMAKE_FLAGS: "-DCMAKE_BUILD_TYPE=DEBUG -DCARES_STATIC=ON -DCARES_STATIC_PIC=ON -G Ninja" + CMAKE_TEST_FLAGS: "-DCARES_BUILD_TESTS=ON" + with: + operating_system: openbsd + version: '7.5' + shell: 'bash' + environment_variables: DIST BUILD_TYPE CMAKE_FLAGS CMAKE_TEST_FLAGS + run: | + sudo pkg_add cmake gtest pkgconf ninja + echo "BUILD_TYPE: $BUILD_TYPE" + echo "CMAKE_FLAGS: $CMAKE_FLAGS" + echo "CMAKE_TEST_FLAGS: $CMAKE_TEST_FLAGS" + ./ci/build.sh + ./ci/test.sh +