Skip to content

Commit

Permalink
match go version in build_and_release.yml to go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipnah committed Aug 13, 2024
1 parent cfbdd58 commit 605ce3e
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- "v*.*.*"
workflow_dispatch:


jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -18,18 +17,18 @@ jobs:
os: [darwin, windows, linux]
arch: [arm64, amd64]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22"

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Build
run: env GOOS=${{matrix.os}} GOARCH=${{matrix.arch}} go build -o ./bin/${{matrix.os}}/${{matrix.arch}}/ego main.go
- name: Build
run: env GOOS=${{matrix.os}} GOARCH=${{matrix.arch}} go build -o ./bin/${{matrix.os}}/${{matrix.arch}}/ego main.go

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
files: "./bin/*"
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
files: "./bin/*"

0 comments on commit 605ce3e

Please sign in to comment.