Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed May 19, 2024
1 parent 2c68e6c commit d8edcd2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_MAXSIZE: 500M
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -86,6 +87,18 @@ jobs:
name: mpv-${{ matrix.target }}
path: mpv-git-*.zip

- name: Cleanup
run: |
gh extension install actions/gh-actions-cache
keys=$(gh actions-cache list --key ${{ matrix.target }}- -R ${{ github.repository }} -B ${{ github.ref }} | cut -f 1)
set +e
echo "Deleting caches..."
for key in $keys
do
echo $key
gh actions-cache delete $key -R ${{ github.repository }} -B ${{ github.ref }} --confirm
done
win32:
runs-on: windows-latest
env:
Expand All @@ -98,6 +111,7 @@ jobs:
CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_DIR: "${{ github.workspace }}\\.ccache"
CCACHE_MAXSIZE: 500M
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Disable autocrlf
run: |
Expand Down Expand Up @@ -171,6 +185,18 @@ jobs:
build/vulkan-*.dll
!build/mpv.lib
- name: Cleanup
run: |
gh extension install actions/gh-actions-cache
keys=$(gh actions-cache list -k x86_64-windows-msvc- -R ${{ github.repository }} -B ${{ github.ref }} | cut -f 1)
set +e
echo "Deleting caches..."
for key in $keys
do
echo $key
gh actions-cache delete $key -R ${{ github.repository }} -B ${{ github.ref }} --confirm
done
macos:
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit d8edcd2

Please sign in to comment.