Skip to content

Commit

Permalink
Update go.yml for GitHub Actions to build with Go 1.22 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
matsuo committed Aug 4, 2024
1 parent 4c3b4d3 commit 191e98f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ jobs:
matrix:
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
os: [ macos-12, macos-13, macos-14, macos-latest, windows-2019, windows-2022, windows-latest ]
go: [ '1.21' ]
go: [ '1.22' ]
steps:

- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
cache: false
go-version: ${{ matrix.go }}
check-latest: true

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/checkout@v4

- shell: bash
run: echo "xmlpaste_version=1.1.0-dev" >> "$GITHUB_ENV"
Expand All @@ -34,7 +34,7 @@ jobs:
run: go build -ldflags "-X main.version=${{ env.xmlpaste_version }}" xmlpaste.go xmlpaste_windows.go

- shell: bash
run: echo "goss_commit_hash=7e70e27fd419534b2a208af8eea1747af5658e01" >> "$GITHUB_ENV" # v0.4.0
run: echo "goss_commit_hash=aed56336c3e8ff683e9540065b502f423dd6760d" >> "$GITHUB_ENV" # v0.4.8

- shell: bash
run: echo "GOSS_USE_ALPHA=1" >> "$GITHUB_ENV"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/emic/XMLPaste

go 1.16
go 1.22
2 changes: 1 addition & 1 deletion release-notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This software is distributed under the MIT License.
Version: 1.1.0 (in development)
- Support Apple Silicon on macOS.
- Add support for macOS Monterey 12, macOS Ventura 13 and macOS Sonoma 14.
- Built with Go 1.21.
- Built with Go 1.22.
- [INFO] Drop support for 32-bit Windows version.
- [INFO] Drop support for Windows 10 Version 21H2 or previous.
- [INFO] Drop support for Windows 7.
Expand Down

0 comments on commit 191e98f

Please sign in to comment.