feat: allow builds for unix (#311)

pull/313/head
sammyette 2024-07-19 09:48:01 -04:00 committed by GitHub
parent b24fc4a422
commit d7ab887234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 12 additions and 12 deletions

View File

@ -29,7 +29,7 @@ jobs:
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '1.18.8' go-version: '1.22.2'
- name: Download Task - name: Download Task
run: 'sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d' run: 'sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d'
- name: Build - name: Build

View File

@ -1,4 +1,4 @@
// +build linux darwin //go:build unix
package main package main

View File

@ -1,4 +1,4 @@
// +build windows //go:build windows
package main package main

View File

@ -1,4 +1,4 @@
// +build windows //go:build windows
package main package main

View File

@ -1,4 +1,4 @@
// +build darwin linux //go:build unix
package main package main

View File

@ -1,4 +1,4 @@
// +build windows //go:build windows
package main package main

View File

@ -1,4 +1,4 @@
// +build pprof //go:build pprof
package main package main

View File

@ -1,4 +1,4 @@
// +build darwin linux //go:build unix
package main package main

View File

@ -1,4 +1,4 @@
// +build windows //go:build windows
package main package main

View File

@ -1,4 +1,4 @@
// +build darwin //go:build darwin
package main package main

View File

@ -1,4 +1,4 @@
// +build linux //go:build unix && !darwin
package main package main

View File

@ -1,4 +1,4 @@
// +build windows //go:build windows
package main package main