Build UberJars #11
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 UberJars | |
| on: | |
| push: | |
| tags: | |
| - "v*" # run on version tags (e.g. v1.0.0) | |
| workflow_dispatch: # allow manual trigger | |
| jobs: | |
| build: | |
| name: Build on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-15-intel] | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "zulu" | |
| java-version: "21" | |
| - name: Build uber-jar | |
| run: ./gradlew packageReleaseUberJarForCurrentOS --no-daemon --stacktrace | |
| - name: Upload uber-jar artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: uberjar-${{ matrix.os }} | |
| path: app/build/compose/jars/*.jar |