Skip to content

Commit

Permalink
chore: upgrade actions (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
g1eny0ung authored Mar 25, 2024
1 parent c31ee82 commit 5c7014f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,21 @@ jobs:
runs-on: ${{ fromJson('{"amd64":"ubuntu-latest", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }}

steps:
- name: Set up Go 1.18
uses: actions/setup-go@v1
with:
go-version: 1.18.2
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
path: go/src/github.com/${{ github.repository }}

- name: Set up Go 1.18
uses: actions/setup-go@v4
with:
go-version: 1.20.x
id: go

- name: ${{ matrix.job }}
run: |
# workaround for https://github.com/actions/setup-go/issues/14
export GOPATH=${GITHUB_WORKSPACE}/go
export PATH=$PATH:$GOPATH/bin
#use sh function
# use sh function
if [[ "$job" == "verify" ]]; then
# preload go modules before goimports
go mod download -x
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
container: ${{ fromJson('{"amd64":"docker.io/centos:7.2.1511", "arm64":"docker.io/centos:centos7"}')[matrix.arch] }}
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v1
uses: actions/setup-go@v4
with:
go-version: 1.18.2
id: go
Expand All @@ -29,7 +29,7 @@ jobs:
echo /opt/rh/rh-git227/root/usr/bin >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/opt/rh/httpd24/root/usr/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
- uses: actions/checkout@master
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
container: ${{ fromJson('{"amd64":"docker.io/centos:7.2.1511", "arm64":"docker.io/centos:centos7"}')[matrix.arch] }}
steps:
- name: Set up Go 1.18
uses: actions/setup-go@v1
uses: actions/setup-go@v4
with:
go-version: 1.18.2
id: go
Expand All @@ -28,7 +28,7 @@ jobs:
echo /opt/rh/rh-git227/root/usr/bin >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=/opt/rh/httpd24/root/usr/lib64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
- uses: actions/checkout@master
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down

0 comments on commit 5c7014f

Please sign in to comment.