Skip to content

Commit

Permalink
ci: add action to build plugin against snapshot runelite
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed Jan 16, 2025
1 parent a745115 commit b967658
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/gradle-snapshot.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b967658

Please sign in to comment.