From 4328dbe050fbd481c216cd262c85861ce0769b69 Mon Sep 17 00:00:00 2001 From: lzw-723 Date: Sat, 2 May 2026 13:54:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-ci.yaml | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .gitea/workflows/build-ci.yaml diff --git a/.gitea/workflows/build-ci.yaml b/.gitea/workflows/build-ci.yaml new file mode 100644 index 0000000..9e9a76e --- /dev/null +++ b/.gitea/workflows/build-ci.yaml @@ -0,0 +1,47 @@ +name: Build + +on: + workflow_dispatch: + +jobs: + docker: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + repository: 'lzw-723/ClashMetaForAndroid' + fetch-depth: 0 + + - name: Checkout submodules + run: git submodule update --init --recursive --force + + - name: Setup Java + uses: actions/setup-java@v5 + with: + distribution: "temurin" + java-version: 21 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v6 + + - name: Setup Go + uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c + with: + go-download-base-url: 'https://github.com/MetaCubeX/go/releases/download/build' + go-version: '1.26' + + - name: Apply Patches + run: | + cd $(go env GOROOT) + for p in $GITHUB_WORKSPACE/.github/patch/*.patch; do patch --verbose -p 1 < "$p"; done + + - uses: actions/cache@v5 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- \ No newline at end of file