mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2025-04-08 11:42:04 +00:00
chore: Update update-dependencies.yml
This commit is contained in:
parent
8f97f636fb
commit
9d69a88c73
1 changed files with 24 additions and 8 deletions
32
.github/workflows/update-dependencies.yml
vendored
32
.github/workflows/update-dependencies.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue