Skip to content

Commit

Permalink
Update go.mod and workflow files for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matsuo committed Oct 27, 2024
1 parent 7f58f9d commit 8ae60a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/emic/XMLPaste

go 1.23
go 1.23.0

toolchain go1.23.2

0 comments on commit 8ae60a9

Please sign in to comment.