Skip to content

Commit

Permalink
CI: Add Netbsd workflow (c-ares#756)
Browse files Browse the repository at this point in the history
Add NetBSD as a test target for CI.

Fix By: Brad House (@bradh352)
  • Loading branch information
bradh352 authored May 8, 2024
1 parent 93656ff commit fd620e0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/netbsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright (C) The c-ares project and its contributors
# SPDX-License-Identifier: MIT
name: NetBSD

on: [push]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Test
uses: cross-platform-actions/[email protected]
env:
DIST: NETBSD
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"
PKG_PATH: https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/10.0/All/
with:
operating_system: netbsd
version: '10.0'
shell: 'bash'
environment_variables: DIST BUILD_TYPE CMAKE_FLAGS CMAKE_TEST_FLAGS PKG_PATH
run: |
echo "BUILD_TYPE: $BUILD_TYPE"
echo "CMAKE_FLAGS: $CMAKE_FLAGS"
echo "CMAKE_TEST_FLAGS: $CMAKE_TEST_FLAGS"
echo "PKG_PATH: $PKG_PATH"
sudo -E /usr/pkg/sbin/pkg_add cmake googletest pkgconf ninja-build
./ci/build.sh
./ci/test.sh

0 comments on commit fd620e0

Please sign in to comment.