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 84580c2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 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,16 @@ jobs:
name: mpv-${{ matrix.target }}
path: mpv-git-*.zip

- name: Remove old caches
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
for key in $keys
do
gh actions-cache delete $key -R ${{ github.repository }} -B ${{ github.ref }} --confirm
done
win32:
runs-on: windows-latest
env:
Expand All @@ -98,6 +109,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 +183,14 @@ jobs:
build/vulkan-*.dll
!build/mpv.lib
- name: Remove old caches
run: |
gh extension install actions/gh-actions-cache
$keys = (gh actions-cache list --key x86_64-windows-msvc- -R ${{ github.repository }} -B ${{ github.ref }} | ForEach-Object { $_.Split("`t")[0] })
foreach ($key in $keys) {
gh actions-cache delete $key -R ${{ github.repository }} -B ${{ github.ref }} --confirm
}
macos:
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit 84580c2

Please sign in to comment.