From 191e98f4214e6bb3e4e68549020d43e3e4b2acc9 Mon Sep 17 00:00:00 2001 From: Atsushi Matsuo Date: Sun, 4 Aug 2024 11:08:00 +0900 Subject: [PATCH] Update go.yml for GitHub Actions to build with Go 1.22 (#1) --- .github/workflows/go.yml | 8 ++++---- go.mod | 2 +- release-notes.txt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c3a4e84..fc5cf1b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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" @@ -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" diff --git a/go.mod b/go.mod index 33c71e4..28f2f8a 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/emic/XMLPaste -go 1.16 +go 1.22 diff --git a/release-notes.txt b/release-notes.txt index 342cf06..034268f 100644 --- a/release-notes.txt +++ b/release-notes.txt @@ -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.