Skip to content

Commit

Permalink
ci: update actions to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
herver committed Jun 29, 2023
1 parent 8e17284 commit d2d3383
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:

- name: Set up Go 1.20
uses: actions/setup-go@v3
- uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version: 1.20
go-version: '1.20'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Build
run: go build -o go-gvacli -v .
run: |
go get -v
go build -o go-gvacli -v .
- name: Save artifacts
uses: actions/upload-artifact@v3
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ jobs:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: 1.20
go-version: '1.20'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build
env:
GOOS: linux
CGO_ENABLED: 0
run: go build -ldflags '-extldflags "-static"' -o go-gvacli -v .
run: |
go get -v
go build -ldflags '-extldflags "-static"' -o go-gvacli -v .
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
Expand All @@ -38,7 +40,7 @@ jobs:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: 1.20
go-version: '1.20'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand All @@ -47,7 +49,9 @@ jobs:
GOOS: darwin
GOARCH: amd64
CGO_ENABLED: 0
run: go build -o go-gvacli -v .
run: |
go get -v
go build -o go-gvacli -v .
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
Expand All @@ -66,7 +70,7 @@ jobs:
- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: 1.20
go-version: '1.20'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
Expand All @@ -75,7 +79,9 @@ jobs:
GOOS: windows
GOARCH: amd64
CGO_ENABLED: 0
run: go build -o go-gvacli -v .
run: |
go get -v
go build -o go-gvacli -v .
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit d2d3383

Please sign in to comment.