From 8ae60a982d5db70915d61b4274d259c1064a477b Mon Sep 17 00:00:00 2001 From: Atsushi Matsuo Date: Sun, 27 Oct 2024 13:33:24 +0900 Subject: [PATCH] Update go.mod and workflow files for GitHub Actions --- .github/workflows/go.yml | 9 ++++----- .github/workflows/release.yml | 6 +++--- go.mod | 4 +++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 63d12e2..3683b48 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,18 +12,17 @@ jobs: matrix: # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners os: [ 'macos-13', 'macos-14', 'macos-15', 'macos-latest', 'windows-2019', 'windows-2022', 'windows-latest' ] - go: [ '1.23' ] steps: + - uses: actions/checkout@v4 + - name: Setup go - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: cache: false - go-version: ${{ matrix.go }} + go-version-file: 'go.mod' check-latest: true - - uses: actions/checkout@v4 - - shell: bash run: cat Makefile | grep "^VERSION=" | sed -e "s/VERSION/xmlpaste_version/g" >> "$GITHUB_ENV" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5047581..26e0a5a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,14 +14,14 @@ jobs: matrix: # https://docs.github.com/ja/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners os: [ 'macos-latest' ] - go: [ '1.23' ] steps: - name: Setup go - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 + uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 with: cache: false - go-version: ${{ matrix.go }} + go-version-file: 'go.mod' + check-latest: true - uses: actions/checkout@v4 diff --git a/go.mod b/go.mod index 8a5c0b5..7751f25 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module github.com/emic/XMLPaste -go 1.23 +go 1.23.0 + +toolchain go1.23.2