Skip to content

Commit

Permalink
ci: Generate loader/client artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazaz committed Jan 3, 2024
1 parent 031e821 commit ed5316e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/loader-client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- clean

jobs:
loader-client:
name: Build Loader and Client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build Client
run: gradle client:build

- name: Generate Client SHA Signature
run: gradle -p tools sig

- name: Generate Loader
run: gradle loader:build

- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: loader-client
path: |
loader/build/libs/*
6 changes: 6 additions & 0 deletions tools/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ tasks.withType(JavaCompile) {
tasks.withType(JavaExec) {
workingDir = rootProject.projectDir
}

tasks.register('sig', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'lostcity.tools.LoaderSig'
args = ['client/build/libs/client.jar']
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lostcity;
package lostcity.tools;

import java.nio.file.Files;
import java.nio.file.Paths;
Expand Down

0 comments on commit ed5316e

Please sign in to comment.