Modernize build tags

This commit is contained in:
Junegunn Choi 2022-03-29 21:20:33 +09:00
parent 32847f7254
commit b88eb72ac2
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627
19 changed files with 18 additions and 27 deletions

View File

@ -14,9 +14,6 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.14, 1.16]
steps:
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
with:
@ -25,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v2
with:
go-version: ${{ matrix.go }}
go-version: 1.18
- name: Setup Ruby
uses: ruby/setup-ruby@bd94d6a504586da892a5753afdd1480096ed30df # v1.62.0

View File

@ -14,9 +14,6 @@ permissions:
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
go: [1.14, 1.16]
steps:
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
with:
@ -25,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v2
with:
go-version: ${{ matrix.go }}
go-version: 1.18
- name: Setup Ruby
uses: ruby/setup-ruby@bd94d6a504586da892a5753afdd1480096ed30df # v1.62.0

1
.tool-versions Normal file
View File

@ -0,0 +1 @@
golang 1.18

View File

@ -1,4 +1,4 @@
// +build !openbsd
//go:build !openbsd
package protector

View File

@ -1,4 +1,4 @@
// +build openbsd
//go:build openbsd
package protector

View File

@ -1,4 +1,4 @@
// +build !386,!amd64
//go:build !386 && !amd64
package fzf

View File

@ -1,5 +1,3 @@
// +build !tcell
package fzf
import (

View File

@ -1,4 +1,4 @@
// +build 386 amd64
//go:build 386 || amd64
package fzf

View File

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

View File

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

View File

@ -1,6 +1,4 @@
// +build !ncurses
// +build !tcell
// +build !windows
//go:build !tcell && !windows
package tui

View File

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

View File

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

View File

@ -1,4 +1,4 @@
// +build tcell windows
//go:build tcell || windows
package tui

View File

@ -1,4 +1,4 @@
// +build tcell windows
//go:build tcell || windows
package tui

View File

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

View File

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

View File

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

View File

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