From 6717bb5e2fd6b78528651ce0af45772a768a29d9 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Mon, 22 May 2023 01:00:16 +0800 Subject: [PATCH] ci: --- .gitea/workflows/built-bin.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/built-bin.yaml b/.gitea/workflows/built-bin.yaml index a0331de..9c99ad0 100644 --- a/.gitea/workflows/built-bin.yaml +++ b/.gitea/workflows/built-bin.yaml @@ -45,6 +45,15 @@ jobs: path: ./target/release/network-monitor key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} + + - id: restore-executable-binary + name: Restore Executable Binary + uses: https://github.com/actions/cache/restore@v3 + with: + path: ./target/release/network-monitor + key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} + fail-on-cache-miss: true + docker: runs-on: ubuntu-latest container: @@ -64,16 +73,12 @@ jobs: uses: https://github.com/Maxyme/get-release-or-tag@v2 - id: restore-executable-binary - name: Cache Executable Binaries + name: Restore Executable Binary uses: https://github.com/actions/cache/restore@v3 with: path: ./target/release/network-monitor key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} - - - if: ${{ steps.restore-executable-binary.outputs.cache-hit != 'true' }} - name: Check if binary not exists - run: echo "missing program" - continue-on-error: false + fail-on-cache-miss: true - name: Log in to the Container registry uses: https://github.com/docker/login-action@v2