From 5731e82279ceab60dffa56e482ffbb6c0e9a697a Mon Sep 17 00:00:00 2001 From: Renato Athaydes Date: Sun, 28 Apr 2024 16:43:35 +0200 Subject: [PATCH] GH Actions build fatJar before building Rust client. --- .github/workflows/release.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae110bb..02c60bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 17 + - uses: eskatos/gradle-command-action@v1 + with: + arguments: fatJar + - uses: actions/upload-artifact@master + with: + name: fatjar + path: jgrab-runner/build/libs + if-no-files-found: error - uses: taiki-e/create-gh-release-action@v1 with: changelog: CHANGELOG.MD @@ -43,6 +55,12 @@ jobs: - uses: goto-bus-stop/setup-zig@v2 - name: Install cargo-zigbuild run: cargo install cargo-zigbuild + - uses: actions/download-artifact@master + with: + name: fatjar + path: jgrab-runner/build/libs + - name: Display structure of downloaded files + run: ls -R jgrab-runner/build - uses: taiki-e/upload-rust-binary-action@v1 with: manifest-path: ./jgrab-client/Cargo.toml