diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a954f933..abd3695f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,17 +19,13 @@ 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 + - 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/setup-go@v4 with: go-version: 1.20.x - id: go - name: ${{ matrix.job }} run: | diff --git a/.github/workflows/release_latest.yml b/.github/workflows/release_latest.yml index 1060a33b..a4688edb 100644 --- a/.github/workflows/release_latest.yml +++ b/.github/workflows/release_latest.yml @@ -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: | diff --git a/.github/workflows/release_tag.yml b/.github/workflows/release_tag.yml index ef94174e..e033d48a 100644 --- a/.github/workflows/release_tag.yml +++ b/.github/workflows/release_tag.yml @@ -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: |