forked from c-ares/c-ares
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.04 KB
/
openbsd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright (C) The c-ares project and its contributors
# SPDX-License-Identifier: MIT
name: OpenBSD
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test
uses: cross-platform-actions/[email protected]
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"
TEST_DEBUGGER: "lldb"
with:
operating_system: openbsd
version: '7.5'
shell: 'bash'
environment_variables: DIST BUILD_TYPE CMAKE_FLAGS CMAKE_TEST_FLAGS TEST_DEBUGGER
run: |
sudo pkg_add bash cmake gtest pkgconf ninja gdb lldb
sudo ln -sf /usr/local/bin/bash /bin/bash
echo "BUILD_TYPE: $BUILD_TYPE"
echo "CMAKE_FLAGS: $CMAKE_FLAGS"
echo "CMAKE_TEST_FLAGS: $CMAKE_TEST_FLAGS"
./ci/build.sh
./ci/test.sh