From a4bf0eb66d6cadc3b2985d11ea1ebb9be7bcce03 Mon Sep 17 00:00:00 2001 From: dafik Date: Sat, 18 Nov 2023 15:01:24 +0100 Subject: [PATCH] ci --- .github/workflows/package.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 804df05..c49468e 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -39,19 +39,10 @@ jobs: ${{ runner.os }}-build- ${{ runner.os }}- - - name: Cache app target - id: cache-app - uses: actions/cache@v2 - env: - cache-name: cache-app + - uses: actions/upload-artifact@v3 with: - # caching node_modules + name: app path: app/target/*-dep.jar - key: ${{ runner.os }}-build-${{ env.cache-name }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - name: Set up JDK 17 uses: actions/setup-java@v3 @@ -75,6 +66,12 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: actions/download-artifact@v3 + with: + name: app + + - run: ls + - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -89,7 +86,7 @@ jobs: - name: Run Buildx run: | - cp ./app/target/app-${{ github.ref_name }}-dep.jar ./docker/std/sbc2ha.jar + cp app-${{ github.ref_name }}-dep.jar ./docker/std/sbc2ha.jar docker buildx build \ --platform linux/amd64,linux/arm/v7,linux/arm64 \ --output "type=image,push=false" \