diff --git a/action.yml b/action.yml index 505956c..9146584 100644 --- a/action.yml +++ b/action.yml @@ -29,6 +29,18 @@ runs: path: aur key: ${{ runner.os }}-${{ github.repository }}-aur-${{ github.run_number }} restore-keys: ${{ runner.os }}-${{ github.repository }}-aur- + - name: Build aur + if: steps.cache-aur-restore.outputs.cache-hit != 'true' + uses: https://git.fml128.ch/FML128/idkyet-builder-action/aur@main + with: + layer_config_file: layers_config.yml + - name: Save aur cache + if: steps.cache-aur-restore.outputs.cache-hit != 'true' + uses: actions/cache/save@v3 + with: + path: aur + # key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }} #TODO: implement this for better caching + key: ${{ runner.os }}-${{ github.repository }}-aur-${{ github.run_number }} - name: Build images uses: docker://git.fml128.ch/fml128/idkyet-builder:latest args: @@ -49,10 +61,4 @@ runs: curl --user "${{ gitea.actor }}:${{ secrets.PACKET_TOKEN }}" \ -X DELETE \ "https://git.fml128.ch/api/packages/${{ github.repository_owner }}/generic/${GITHUB_REPOSITORY#*/}/${{ steps.version.outputs.RELEASE_VERSION }}" - - name: Save aur cache - id: cache-aur-save - uses: actions/cache/save@v3 - with: - path: aur - # key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }} #TODO: implement this for better caching - key: ${{ runner.os }}-${{ github.repository }}-aur-${{ github.run_number }} +