对ECO设备补充一个在区块加载时要求结构重新检查 #282
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [ '**' ] | |
| tags-ignore: [ 'v*' ] | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Java 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| java-version: '25' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Build | |
| run: chmod +x gradlew && ./gradlew build | |
| - name: Read mod version | |
| id: props | |
| run: | | |
| version=$(grep -E '^mod_version' gradle.properties | cut -d'=' -f2 | tr -d ' ') | |
| echo "mod_version=$version" >> "$GITHUB_OUTPUT" | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: ${{ github.event.repository.name }}-${{ steps.props.outputs.mod_version }} | |
| path: build/libs/*.jar | |
| if-no-files-found: error |