Build / build (push) Failing after 8m23s
来源 jar:[1.7.10] Thaumic Additions - 0.41.jar(liuhao/liangzishidai)。 反编译 307 个类(Fernflower,0 失败),资源 281 个;未编译验证。 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
63 lines
2.2 KiB
YAML
63 lines
2.2 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
inputs:
|
|
module-ref:
|
|
description: Commit to build (default is the dispatched ref)
|
|
required: false
|
|
default: ''
|
|
gradle-args:
|
|
description: Extra Gradle arguments
|
|
required: false
|
|
default: ''
|
|
publish:
|
|
description: Publish the package ('true' or 'false')
|
|
required: false
|
|
default: 'false'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 90
|
|
env:
|
|
GRADLE_USER_HOME: ${{ github.workspace }}/.gradle-ci
|
|
ARTIFACT_GROUP_ID: uk.potatolab
|
|
MAVEN_USER: ${{ secrets.MAVEN_USER }}
|
|
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
|
ORG_GRADLE_PROJECT_tdlmUsername: ${{ secrets.MAVEN_USER }}
|
|
ORG_GRADLE_PROJECT_tdlmPassword: ${{ secrets.MAVEN_PASSWORD }}
|
|
steps:
|
|
- uses: https://git.potatolab.uk/actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
|
|
with:
|
|
ref: ${{ inputs.module-ref || github.sha }}
|
|
fetch-depth: 0 # the package version is derived from git history
|
|
|
|
- uses: https://git.potatolab.uk/actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6
|
|
with:
|
|
distribution: zulu
|
|
java-version: '25'
|
|
cache-jdk: true
|
|
|
|
- uses: https://git.potatolab.uk/actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
|
|
with:
|
|
path: ~/.gradle/jdks
|
|
key: gradle-toolchains-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.gradle', '**/gradle.properties', '**/gradle-wrapper.properties') }}
|
|
restore-keys: gradle-toolchains-${{ runner.os }}-${{ runner.arch }}-
|
|
|
|
- uses: https://git.potatolab.uk/actions/gradle-actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb
|
|
with:
|
|
cache-provider: basic
|
|
|
|
- name: Build
|
|
env:
|
|
PUBLISH: ${{ github.event_name == 'push' || inputs.publish == 'true' }}
|
|
GRADLE_ARGS: ${{ inputs.gradle-args }}
|
|
run: |
|
|
tasks=(build)
|
|
[[ "$PUBLISH" == 'true' ]] && tasks+=(publish)
|
|
read -r -a extra <<< "$GRADLE_ARGS"
|
|
bash ./gradlew "${tasks[@]}" "${extra[@]}" --no-daemon --console=plain
|