From b96765817e1ff0f72638e301bfbb0493e57c7794 Mon Sep 17 00:00:00 2001 From: iProdigy Date: Wed, 15 Jan 2025 19:13:14 -0600 Subject: [PATCH] ci: add action to build plugin against snapshot runelite --- .github/workflows/gradle-snapshot.yml | 20 ++++++++++++++++++++ build.gradle.kts | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gradle-snapshot.yml diff --git a/.github/workflows/gradle-snapshot.yml b/.github/workflows/gradle-snapshot.yml new file mode 100644 index 00000000..4f197aab --- /dev/null +++ b/.github/workflows/gradle-snapshot.yml @@ -0,0 +1,20 @@ +name: Build with Snapshot RuneLite +on: pull_request +jobs: + gradle: + strategy: + matrix: + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Build using latest runelite snapshot version + run: ./gradlew --no-build-cache -Puse.snapshot clean build -x test diff --git a/build.gradle.kts b/build.gradle.kts index 3c05f773..e13bd0e6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -24,7 +24,7 @@ dependencies { // this version of annotations is verified by runelite compileOnly(group = "org.jetbrains", name = "annotations", version = "23.0.0") - val runeLiteVersion = "latest.release" + val runeLiteVersion = "latest." + if (project.hasProperty("use.snapshot")) "integration" else "release" compileOnly(group = "net.runelite", name = "client", version = runeLiteVersion) testImplementation(group = "net.runelite", name = "client", version = runeLiteVersion) testImplementation(group = "net.runelite", name = "jshell", version = runeLiteVersion)