Fix: composter overlay being white #34614
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: Build | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| paths-ignore: | |
| - ".gitignore" | |
| pull_request_target: | |
| branches: | |
| - "*" | |
| paths-ignore: | |
| - ".gitignore" | |
| workflow_dispatch: | |
| permissions: write-all | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: "Build and test" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| - uses: hannibal002/SkyHanni/.github/actions/setup-normal-workspace@beta | |
| - name: Disable preprocessor | |
| run: | | |
| mkdir -p .gradle | |
| echo skyhanni.multi-version=off > .gradle/private.properties | |
| - name: Build with Gradle w/retry | |
| uses: hannibal002/SkyHanni/.github/actions/gradle-retry@beta | |
| with: | |
| gradle-command: assemble -x test --stacktrace -PskipDetekt=true | |
| - uses: actions/upload-artifact@v4 | |
| name: Upload development build | |
| with: | |
| name: "Development Build" | |
| path: build/libs/*.jar | |
| - name: Test with Gradle w/retry | |
| uses: hannibal002/SkyHanni/.github/actions/gradle-retry@beta | |
| with: | |
| gradle-command: test | |
| - uses: actions/upload-artifact@v4 | |
| name: "Upload test report" | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: "Test Results" | |
| path: build/reports/tests/test/ | |
| preprocess: | |
| runs-on: ubuntu-latest | |
| name: "Build multi version" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| - uses: hannibal002/SkyHanni/.github/actions/setup-normal-workspace@beta | |
| - name: Enable preprocessor | |
| run: | | |
| mkdir -p .gradle | |
| echo skyhanni.multi-version=compile > .gradle/private.properties | |
| - name: Build with Gradle w/retry | |
| uses: hannibal002/SkyHanni/.github/actions/gradle-retry@beta | |
| with: | |
| gradle-command: build --stacktrace -PskipDetekt=true | |
| - name: Add label if build fails | |
| if: ${{ failure() && github.event_name == 'pull_request_target' && github.event.pull_request.state == 'open' }} | |
| uses: actions-ecosystem/action-add-labels@v1 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| labels: 'Fails Multi-Version' | |
| - name: Remove label if build passes | |
| if: ${{ success() && github.event_name == 'pull_request_target' && github.event.pull_request.state == 'open' }} | |
| uses: actions-ecosystem/action-remove-labels@v1 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| labels: 'Fails Multi-Version' | |
| - name: Upload multi-version build | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: "Multi-version Development Build" | |
| path: build/libs/*.jar |