Skip to content
Discussion options

You must be logged in to vote

I've come up with the following solution that works on windows-2022 runner.

      - name: Set gtk-build-moment-stamp for cache
        run: echo "stamp=$([Math]::Truncate(($(Get-Date).DayofYear / 7)))" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
        id: gtk-build-moment-stamp

      - uses: actions/cache@v4
        id: cache-gtk
        with:
          path: C:/gtk-build/gtk/x64/release
          key: ${{ runner.os }}-gtk-build-${{ steps.gtk-build-moment-stamp.outputs.stamp }}

      - run: py -3.13 -m pip install --user pipx
        if: ${{ steps.cache-gtk.outputs.cache-hit != 'true' }}
      - run: py -3.13 -m pipx ensurepath
        if: ${{ steps.cache-gtk.output…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@OSA413
Comment options

Answer selected by OSA413
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant