Build the native installer code from one repo. #296
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, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'microsoft' | |
| java-version: '21' | |
| - uses: actions/checkout@v4 | |
| - uses: gradle/actions/wrapper-validation@v4 | |
| - run: ./gradlew build --stacktrace --warning-mode fail | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Artifacts 21-jdk | |
| path: build/libs/ | |
| build-natives-windows: | |
| runs-on: windows-2025 | |
| steps: | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'microsoft' | |
| java-version: '21' | |
| - uses: actions/checkout@v4 | |
| - uses: gradle/actions/wrapper-validation@v4 | |
| - run: New-Item ".buildNatives" -type file | |
| - run: ./gradlew :native:build :native:publishToMavenLocal --stacktrace --warning-mode fail | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Windows Natives | |
| path: ~/.m2/repository/net/fabricmc/fabric-installer-native-lib/windows/ | |
| build-natives-macos: | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'microsoft' | |
| java-version: '21' | |
| - uses: actions/checkout@v4 | |
| - uses: gradle/actions/wrapper-validation@v4 | |
| - run: touch .buildNatives | |
| - run: ./gradlew :native:build :native:publishToMavenLocal --stacktrace --warning-mode fail | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Windows Natives | |
| path: ~/.m2/repository/net/fabricmc/fabric-installer-native-lib/macos/ |