fix: defer all level events to avoid clearing deferred state #1449
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: C2ME Build Script | |
| on: | |
| push: {} | |
| pull_request: {} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| submodules: true | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'zulu' | |
| java-version: 25 | |
| java-package: jdk | |
| - name: Install LLVM | |
| uses: KyleMayes/install-llvm-action@v2 | |
| with: | |
| version: "20.1.8" | |
| force-url: "https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.8/LLVM-20.1.8-Linux-X64.tar.xz" | |
| directory: ${{ runner.temp }}/llvm | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| cache-read-only: false | |
| cache-cleanup: never | |
| - name: Build C2ME | |
| run: | | |
| ./gradlew clean build --stacktrace | |
| - name: upload to modrinth and curseforge | |
| run: ./gradlew modrinth publishMainPublicationToCurseForge | |
| if: github.ref == 'refs/heads/dev/1.21.10' | |
| env: | |
| MODRINTH_TOKEN: ${{ secrets.MODRINTH_UPLOAD_TOKEN }} | |
| CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_API_TOKEN }} | |
| GITHUB_EVENT_RAW_PATH: ${{ github.event_path }} | |
| continue-on-error: true | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: c2me-artifact | |
| path: 'build/libs/*.jar' | |