Skip to content

It will need root privileges on operating systems other than Windows #73

It will need root privileges on operating systems other than Windows

It will need root privileges on operating systems other than Windows #73

Workflow file for this run

name: Native Build and Test
on: [push, pull_request]
jobs:
build:
name: dhcpdns-${{matrix.os}}
runs-on: ${{matrix.os}} # run native test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1
- name: Build
run: |
cd cli
go build -ldflags="all=-s -w" -trimpath
- name: Test Windows
if: runner.os == 'Windows'
run: ./cli/cli -k 3 -n 30
- name: Test Non-Windows
if: runner.os != 'Windows'
run: sudo ./cli/cli -k 3 -n 30
- name: Upload
uses: actions/upload-artifact@v4
with:
name: dhcpdns-${{github.head_ref || github.ref_name}}-${{matrix.os}}
path: cli/cli*