Add some features of Large Fluid Tank and Fish Tank 添加巨型流体储罐和鱼缸的部分功能 #3148
Workflow file for this run
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: Pull Request Check | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - releases/** | |
| - dev/** | |
| paths: | |
| - src/** | |
| - gradle/** | |
| - build.gradle | |
| - dependencies.gradle | |
| - gradle.properties | |
| - settings.gradle | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| BUILD_TYPE: pr | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: Read Properties | |
| id: 'properties' | |
| uses: christian-draeger/read-properties@1.1.1 | |
| with: | |
| path: gradle.properties | |
| properties: 'mod_id mod_name java_version' | |
| - name: Setup Java ${{ steps.properties.outputs.java_version }} | |
| uses: actions/setup-java@v3.6.0 | |
| with: | |
| distribution: zulu | |
| java-version: ${{ steps.properties.outputs.java_version }} | |
| - name: make gradle wrapper executable | |
| if: ${{ runner.os != 'Windows' }} | |
| run: chmod +x ./gradlew | |
| - name: Build with Gradle | |
| uses: gradle/actions/setup-gradle@v4.3.1 | |
| - name: Build | |
| run: ./gradlew build | |
| - name: Get Version | |
| id: version | |
| run: | | |
| MESSAGE=$(ls build/libs/* | grep sources.jar -v | grep shadow.jar -v | grep slim.jar -v | awk -F '${{ steps.properties.outputs.mod_id }}-neoforge-|.jar' '{print $2}') | |
| echo "version=$MESSAGE" >> $GITHUB_OUTPUT | |
| - name: capture build artifacts | |
| uses: actions/upload-artifact@v4.3.3 | |
| with: | |
| name: "${{ steps.properties.outputs.mod_name }} ${{ steps.version.outputs.version }}" | |
| path: build/libs/anvilcraft-neoforge-${{ steps.version.outputs.version }}.jar | |
| - name: gametest | |
| uses: Anvil-Dev/dedicated-server-launch-test@1.21.1-neoforge | |
| with: | |
| mod: build/libs/anvilcraft-neoforge-${{ steps.version.outputs.version }}.jar | |
| extra-mods: patchouli:1.21-87-neoforge cloth-config:15.0.140+neoforge |