Build the native installer code from one repo. #298
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-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: MacOS Natives | |
| path: ~/.m2/repository/net/fabricmc/fabric-installer-native-lib/macos/ | |
| build: | |
| runs-on: ubuntu-24.04 | |
| needs: [ build-natives-windows, build-natives-macos] | |
| steps: | |
| - name: Copy Windows Natives | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: Windows Natives | |
| path: ~/.m2/repository/net/fabricmc/fabric-installer-native-lib/windows/ | |
| - name: Copy MacOS Natives | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: Windows Natives | |
| path: ~/.m2/repository/net/fabricmc/fabric-installer-native-lib/macos/ | |
| - 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 | |
| path: build/libs/ |