Skip to content

Commit aa71ac4

Browse files
authored
Merge pull request #5 from SkriptLang/patch/bump-asm-9.7
Bump ASM version and add build workflows
2 parents a7740e7 + 0a6ed67 commit aa71ac4

File tree

3 files changed

+64
-2
lines changed

3 files changed

+64
-2
lines changed

.github/workflows/build-agent-jar.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build agent jar
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v4
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v2
17+
with:
18+
java-version: 11
19+
distribution: temurin
20+
- name: Grant execute permission for gradlew
21+
run: chmod +x gradlew
22+
- name: Build with Gradle
23+
run: ./gradlew clean agentJar
24+
- name: Compute short SHA
25+
id: sha
26+
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
27+
- name: Upload artifacts
28+
uses: actions/upload-artifact@master
29+
with:
30+
name: AddonPatcher-Agent-${{ steps.sha.outputs.short_sha }}
31+
path: build/libs/*.jar
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build replacer jar
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v3
15+
- name: Set up JDK 11
16+
uses: actions/setup-java@v2
17+
with:
18+
java-version: 11
19+
distribution: temurin
20+
- name: Grant execute permission for gradlew
21+
run: chmod +x gradlew
22+
- name: Build with Gradle
23+
run: ./gradlew clean replacerJar
24+
- name: Compute short SHA
25+
id: sha
26+
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
27+
- name: Upload artifacts
28+
uses: actions/upload-artifact@master
29+
with:
30+
name: AddonPatcher-Replacer-${{ steps.sha.outputs.short_sha }}
31+
path: build/libs/*.jar

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repositories {
2626
dependencies {
2727
//noinspection VulnerableLibrariesLocal
2828
compileOnly 'org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT'
29-
shadow 'org.ow2.asm:asm:9.4'
29+
shadow 'org.ow2.asm:asm:9.7'
3030
}
3131

3232
compileJava {
@@ -107,4 +107,4 @@ task replacerJar(type: ShadowJar) {
107107
'Agent-Class': 'org.skriptlang.addonpatcher.variants.agent.Agent'
108108
)
109109
}
110-
}
110+
}

0 commit comments

Comments
 (0)