From b96145d5a7259e21407cf861fbed7f044f2762e7 Mon Sep 17 00:00:00 2001 From: Thomas Schreiber Date: Mon, 23 Sep 2024 14:28:58 +0200 Subject: [PATCH] upgrade github ci build --- .github/workflows/build.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 907d55e..615fa3a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,12 +8,31 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: set up JDK 1.11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: 1.11 + java-version: '11' + distribution: 'corretto' - name: Move `private` folder run: mv private.sample private - name: Build with Gradle - run: ./gradlew build --info --stacktrace + run: | + ./gradlew build --info --stacktrace + ./gradlew :RMBTClient:shadowJar + ./gradlew :RMBTMapServer:war + ./gradlew :RMBTStatisticServer:war + ./gradlew :RMBTQoSServer:jar + ./gradlew :RMBTControlServer:war + + - name: Archive files + uses: actions/upload-artifact@v2 + with: + name: outputs + path: | + RMBTClient/build/libs/*-all.jar + RMBTQoSServer/build/libs/*.jar + RMBTControlServer/build/libs/*.war + RMBTMapServer/build/libs/*.war + RMBTStatisticServer/build/libs/*.war + retention-days: 365 \ No newline at end of file