Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update to Go 1.18, drop Go 1.15 #24

Merged
merged 2 commits into from
Mar 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
env:
CIRRUS_CLONE_DEPTH: 1
GO_VERSION: go1.17.8
GO_VERSION: go1.18

freebsd_12_task:
freebsd_instance:
image_family: freebsd-12-3
install_script: |
pkg install -y go
pkg install -y git go
GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest
bin/${GO_VERSION} download
build_script: bin/${GO_VERSION} build -v ./...
build_script: bin/${GO_VERSION} build -buildvcs=false -v ./...
test_script: bin/${GO_VERSION} test -race ./...
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
build-and-test:
strategy:
matrix:
go-version: [1.15, 1.16, 1.17]
go-version: [1.16, 1.17, 1.18]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}

Expand All @@ -26,11 +26,11 @@ jobs:
uses: actions/checkout@v2

- name: Check formatting
if: ${{ matrix.go-version == '1.17' && matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.go-version == '1.18' && matrix.os == 'ubuntu-latest' }}
run: diff -u <(echo -n) <(gofmt -d .)

- name: Check Go modules
if: ${{ matrix.go-version == '1.17' && matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.go-version == '1.18' && matrix.os == 'ubuntu-latest' }}
run: |
go mod tidy
git diff --exit-code
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/tklauser/numcpus

go 1.11
go 1.13

require golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27