From e9f855e3eb6d26f5c8b8524c2498b75dd1328893 Mon Sep 17 00:00:00 2001 From: n3t1zen Date: Mon, 4 May 2026 12:47:27 +0800 Subject: [PATCH] optimize ci flow and fix bug --- .gitlab-ci.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1f63f4a..78cda40 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,31 +1,13 @@ -stages: - - prepare - - build - -default: - image: golang:1.25.9-trixie # according to the original ~1.25.7 - -calculate-version: - stage: prepare - before_script: - - mkdir -p ~/.ssh && ssh-keyscan -p 22 -t rsa,ed25519 xx >> ~/.ssh/known_hosts - script: - - bin/update && bin/apply && cd works/core - - go run -v ./cmd/internal/read_tag --ci --nightly - - echo "version=$version" >> artifact.env - artifacts: - reports: - dotenv: artifact.env - build-android: - stage: build + image: golang:1.25.9-trixie # according to the original ~1.25.7 before_script: | sudo apt update && sudo apt install -y openjdk-17-jdk-headless /usr/lib/jvm/java-17-openjdk-amd64/bin/java --version - mkdir -p ~/.ssh && ssh-keyscan -p 22 -t rsa,ed25519 xx >> ~/.ssh/known_hosts + mkdir -p ~/.ssh && ssh-keyscan -p 22 -t rsa,ed25519 git.inker.bot >> ~/.ssh/known_hosts script: - bash ./setup-ndk.sh - bin/update && bin/apply && cd works/core + - go run -v ./cmd/internal/read_tag --ci --nightly - git submodule update --init --recursive - git ls-remote --exit-code --tags origin v$version || echo "PUBLISHED=false" >> "$GITHUB_ENV" - git tag v$version -f