mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2025-02-21 09:13:16 +03:00
add update-go-mod-replace
This commit is contained in:
parent
7242f2719c
commit
e701551655
2
.github/workflows/build-debug.yaml
vendored
2
.github/workflows/build-debug.yaml
vendored
@ -23,7 +23,7 @@ jobs:
|
|||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.20"
|
go-version: "1.22"
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
2
.github/workflows/build-release.yaml
vendored
2
.github/workflows/build-release.yaml
vendored
@ -28,7 +28,7 @@ jobs:
|
|||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.20"
|
go-version: "1.22"
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
10
.github/workflows/update-dependencies.yaml
vendored
10
.github/workflows/update-dependencies.yaml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.20"
|
go-version: "1.22"
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
@ -39,14 +39,20 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./gradlew :core:downloadGeoipDatabase
|
./gradlew :core:downloadGeoipDatabase
|
||||||
|
|
||||||
|
- name: Install update-go-mod-replace
|
||||||
|
run: |
|
||||||
|
go install github.com/metacubex/update-go-mod-replace@latest
|
||||||
|
|
||||||
- name: Update Foss Gomod
|
- name: Update Foss Gomod
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}/core/src/foss/golang/
|
cd ${{ github.workspace }}/core/src/foss/golang/
|
||||||
|
update-go-mod-replace ${{ github.workspace }}/core/src/foss/golang/clash/go.mod $(pwd)/go.mod
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
||||||
- name: Update Main Gomod
|
- name: Update Main Gomod
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}/core/src/main/golang/native/
|
cd ${{ github.workspace }}/core/src/main/golang/
|
||||||
|
update-go-mod-replace ${{ github.workspace }}/core/src/foss/golang/clash/go.mod $(pwd)/go.mod
|
||||||
go mod tidy
|
go mod tidy
|
||||||
|
|
||||||
- uses: tibdex/github-app-token@v2
|
- uses: tibdex/github-app-token@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user