diff --git a/.gitea/workflows/built-bin.yaml b/.gitea/workflows/built-bin.yaml index 90f8867..57ac021 100644 --- a/.gitea/workflows/built-bin.yaml +++ b/.gitea/workflows/built-bin.yaml @@ -39,17 +39,6 @@ jobs: - run: echo "steps.restore-dependencies.outputs.cache-primary-key = ${{ steps.restore-dependencies.outputs.cache-primary-key }}" - - name: Cache Dependencies - uses: https://github.com/actions/cache@v3 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ steps.restore-dependencies.outputs.cache-primary-key }} - - id: tag uses: https://github.com/Maxyme/get-release-or-tag@v2 @@ -57,7 +46,7 @@ jobs: run: cargo build --release - name: Cache Executable Binary - uses: https://github.com/actions/cache@v3 + uses: https://github.com/actions/cache/save@v3 with: path: ./target/release/network-monitor key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} @@ -71,12 +60,15 @@ jobs: IMAGE_NAME: ${{ github.repository }} steps: + - id: tag + uses: https://github.com/Maxyme/get-release-or-tag@v2 + - id: restore-executable-binary name: Cache Executable Binaries - uses: actions/cache@v3 + uses: actions/cache/restore@v3 with: path: ./network-monitor - key: ${{ runner.os }}-release-${{ steps.commit.outputs.short}} + key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} - if: ${{ steps.restore-executable-binary.outputs.cache-hit != 'true' }} name: List the state of node modules run: echo "missing program"