From 1dbb67b20ac716d7de7eabd73e5929ee64b1d016 Mon Sep 17 00:00:00 2001 From: Marat Radchenko Date: Sat, 16 Nov 2024 18:00:18 +0300 Subject: [PATCH] resolves #45 add support for Darwin --- .github/workflows/test.yml | 5 ++++- logrotate_freebsd.go | 9 --------- logrotate_linux.go => logrotate_unix.go | 2 ++ 3 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 logrotate_freebsd.go rename logrotate_linux.go => logrotate_unix.go (94%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1176164..e947f43 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,10 @@ jobs: args: --verbose test-unit: - runs-on: ubuntu-20.04 + strategy: + matrix: + os: [ ubuntu-20,04, macos-14 ] + runs-on: ${{ matrix.os }} timeout-minutes: 20 steps: - uses: actions/setup-go@v5 diff --git a/logrotate_freebsd.go b/logrotate_freebsd.go deleted file mode 100644 index dc8d614..0000000 --- a/logrotate_freebsd.go +++ /dev/null @@ -1,9 +0,0 @@ -package logrotate - -import ( - "os" -) - -func chown(_ string, _ os.FileInfo) error { - return nil -} diff --git a/logrotate_linux.go b/logrotate_unix.go similarity index 94% rename from logrotate_linux.go rename to logrotate_unix.go index 249fa90..20062cc 100644 --- a/logrotate_linux.go +++ b/logrotate_unix.go @@ -1,3 +1,5 @@ +//go:build !windows + package logrotate import (