Quick cleanup, update libraries and grammatical error fix in a comment #168
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: Test | |
| on: | |
| push: | |
| branches: [ '*' ] | |
| pull_request: | |
| env: | |
| JAVA_VERSION: 21 | |
| jobs: | |
| buildJava: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: 'microsoft' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Grant execute permission for Gradle wrapper | |
| run: chmod +x ./gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew build --rerun-tasks --stacktrace | |
| - name: Create native artifact | |
| run: ./gradlew copyForNative --rerun-tasks --stacktrace | |
| - name: Store native artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: native-quilt-installer-jar-${{ github.sha }} | |
| path: build/native-quilt-installer.jar | |
| buildNatives: | |
| needs: buildJava | |
| strategy: | |
| matrix: | |
| include: | |
| - name: Windows x64 | |
| publish_target: windows-x86_64 | |
| os: windows-latest | |
| target: x86_64-pc-windows-msvc | |
| file_extension: .exe | |
| - name: Windows x86 | |
| publish_target: windows-i686 | |
| os: windows-latest | |
| target: i686-pc-windows-msvc | |
| file_extension: .exe | |
| - name: Windows arm64 | |
| publish_target: windows-aarch64 | |
| os: windows-latest | |
| target: aarch64-pc-windows-msvc | |
| file_extension: .exe | |
| env: | |
| QUILT_INSTALLER_JAR_PATH: jars/native-quilt-installer.jar | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| # TODO: Fix macOS in future | |
| - uses: actions/checkout@v4 | |
| - name: download native jar | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: native-quilt-installer-jar-${{ github.sha }} | |
| path: ./native/jars | |
| - run: rustup target add ${{ matrix.target }} | |
| - name: Run Cargo Build | |
| run: cargo build --target ${{ matrix.target }} | |
| working-directory: ./native | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: Quilt Native Installer (${{ matrix.name }}) ${{ github.sha }} | |
| path: native/target/${{ matrix.target }}/debug/quilt-installer* | |
| - name: Run Cargo Check | |
| run: cargo check --target ${{ matrix.target }} | |
| working-directory: ./native |