chore: Update update-dependencies.yml

This commit is contained in:
Steve Johnson 2023-10-19 03:08:00 +08:00 committed by GitHub
parent 8f97f636fb
commit 9d69a88c73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,28 +6,44 @@ jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive --remote
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.20"
- name: Checkout Repository
uses: actions/checkout@v3
- name: Git Sumbodule Update (Clash.Meta Core)
- uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download GeoIP Database
run: |
git submodule update --init --remote --recursive -f
./gradlew :core:downloadGeoipDatabase
- name: Update Foss Gomod
run: |
go env -w GOPROXY=https://goproxy.io,direct
cd ./core/src/foss/golang/
go mod download
go mod tidy
- name: Update Main Gomod
run: |
go env -w GOPROXY=https://goproxy.io,direct
cd ./core/src/main/golang/
go mod download
go mod tidy