optimize ci flow and fix bug
This commit is contained in:
+3
-21
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user