mirror of https://github.com/chaos-mesh/chaosd.git
chore: upgrade go
Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
This commit is contained in:
parent
5c7014f45d
commit
6cc1fad435
|
|
@ -19,17 +19,10 @@ jobs:
|
|||
runs-on: ${{ fromJson('{"amd64":"ubuntu-latest", "arm64":["self-hosted", "Linux", "ARM64"]}')[matrix.arch] }}
|
||||
|
||||
steps:
|
||||
- name: Check out code into the Go module directory
|
||||
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
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.20.x
|
||||
id: go
|
||||
|
||||
- name: ${{ matrix.job }}
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -15,23 +15,12 @@ jobs:
|
|||
# glibc version 2.17
|
||||
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@v4
|
||||
with:
|
||||
go-version: 1.18.2
|
||||
id: go
|
||||
|
||||
- name: Prepare build environment
|
||||
run: |
|
||||
# actions/checkout require git v2.X
|
||||
yum install -y gcc make binutils centos-release-scl
|
||||
yum install -y rh-git227-git
|
||||
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@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.20.x
|
||||
|
||||
- name: Setup python3
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -14,23 +14,12 @@ jobs:
|
|||
# glibc version 2.17
|
||||
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@v4
|
||||
with:
|
||||
go-version: 1.18.2
|
||||
id: go
|
||||
|
||||
- name: Prepare build environment
|
||||
run: |
|
||||
# actions/checkout require git v2.X
|
||||
yum install -y gcc make binutils centos-release-scl
|
||||
yum install -y rh-git227-git
|
||||
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@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.20.x
|
||||
|
||||
- name: Setup python3
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue