|
@@ -86,7 +86,6 @@ jobs:
|
|
|
|
|
|
- { os: windows, arch: "386", legacy_go: true }
|
|
- { os: windows, arch: "386", legacy_go: true }
|
|
- { os: windows, arch: amd64, legacy_go: true }
|
|
- { os: windows, arch: amd64, legacy_go: true }
|
|
- - { os: darwin, arch: amd64, legacy_go: true }
|
|
|
|
|
|
|
|
- { os: android, arch: "386", ndk: "i686-linux-android21" }
|
|
- { os: android, arch: "386", ndk: "i686-linux-android21" }
|
|
- { os: android, arch: amd64, ndk: "x86_64-linux-android21" }
|
|
- { os: android, arch: amd64, ndk: "x86_64-linux-android21" }
|
|
@@ -99,16 +98,28 @@ jobs:
|
|
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
|
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
|
with:
|
|
with:
|
|
fetch-depth: 0
|
|
fetch-depth: 0
|
|
- - name: Setup Go
|
|
|
|
- if: matrix.legacy_go
|
|
|
|
- uses: actions/setup-go@v5
|
|
|
|
- with:
|
|
|
|
- go-version: ~1.20
|
|
|
|
- name: Setup Go
|
|
- name: Setup Go
|
|
if: ${{ ! matrix.legacy_go }}
|
|
if: ${{ ! matrix.legacy_go }}
|
|
uses: actions/setup-go@v5
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
with:
|
|
go-version: ^1.24
|
|
go-version: ^1.24
|
|
|
|
+ - name: Cache Legacy Go
|
|
|
|
+ if: matrix.require_legacy_go
|
|
|
|
+ id: cache-legacy-go
|
|
|
|
+ uses: actions/cache@v4
|
|
|
|
+ with:
|
|
|
|
+ path: |
|
|
|
|
+ ~/go/go_legacy
|
|
|
|
+ key: go_legacy_1236
|
|
|
|
+ - name: Setup Legacy Go
|
|
|
|
+ if: matrix.legacy_go && steps.cache-legacy-go.outputs.cache-hit != 'true'
|
|
|
|
+ run: |-
|
|
|
|
+ .github/setup_legacy_go.sh
|
|
|
|
+ - name: Setup Legacy Go 2
|
|
|
|
+ if: matrix.legacy_go
|
|
|
|
+ run: |-
|
|
|
|
+ echo "PATH=$HOME/go/go_legacy/bin:$PATH" >> $GITHUB_ENV
|
|
|
|
+ echo "GOROOT=$HOME/go/go_legacy" >> $GITHUB_ENV
|
|
- name: Setup Android NDK
|
|
- name: Setup Android NDK
|
|
if: matrix.os == 'android'
|
|
if: matrix.os == 'android'
|
|
uses: nttld/setup-ndk@v1
|
|
uses: nttld/setup-ndk@v1
|