Skip to content

configure dependabot updates #171

configure dependabot updates

configure dependabot updates #171

Workflow file for this run

name: Test
on:
push:
branches: [ '*' ]
pull_request:
env:
JAVA_VERSION: 25
jobs:
buildJava:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'microsoft'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
- 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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
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
# TODO Properly set up rust toolchain
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: download native jar
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
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