@@ -133,7 +133,7 @@ jobs:
133
133
run : |
134
134
sudo echo -e "[multilib]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf
135
135
sudo pacman -Syu --noconfirm
136
- sudo pacman -S --noconfirm --needed git gyp ninja cmake ragel yasm nasm asciidoc enca gperf unzip xz gcc-multilib clang lld libc++ libc++abi python-pip curl lib32-glib2 wget python-cairo
136
+ sudo pacman -S --noconfirm --needed git gyp ninja cmake ragel yasm nasm asciidoc enca gperf unzip xz gcc-multilib clang lld libc++ libc++abi python-pip curl lib32-glib2 wget python-cairo mimalloc ccache
137
137
mkdir -p /home/opt/7zip
138
138
wget -qO - https://www.7-zip.org/a/7z2301-linux-x64.tar.xz | tar -xJf - -C /home/opt/7zip 7zzs
139
139
sudo ln -s /home/opt/7zip/7zzs /usr/bin/7z
@@ -144,7 +144,7 @@ jobs:
144
144
git config --global rebase.autoStash true
145
145
git config --global fetch.prune true
146
146
- uses : actions/checkout@v4
147
- - name : Get Params
147
+ - name : Prepare
148
148
run : |
149
149
echo "sha=${{ needs.params.outputs.sha }}" >> $GITHUB_ENV
150
150
echo "winbuild_repo=${{ inputs.winbuild_repo }}" >> $GITHUB_ENV
@@ -159,6 +159,10 @@ jobs:
159
159
repository : ${{ inputs.winbuild_repo }}
160
160
ref : ${{ inputs.winbuild_ref }}
161
161
path : mpv-winbuild-cmake
162
+ - name : Ccache
163
+ run : |
164
+ sed -i '/ccache_conf.in/d' mpv-winbuild-cmake/CMakeLists.txt
165
+ sed -i '/ccache/d' mpv-winbuild-cmake/exec.in
162
166
163
167
- name : Lookup Toolchain Cache
164
168
id : lookup_toolchain
@@ -266,6 +270,17 @@ jobs:
266
270
with :
267
271
path : ${{ github.workspace }}/mpv-winbuild-cmake/build${{ matrix.bit }}
268
272
key : ${{ env.build_restore_key }}
273
+ - name : Set up ccache
274
+ uses : zhongfly/setup-ccache-action@dist
275
+ with :
276
+ update_packager_index : false
277
+ install_ccache : false
278
+ override_cache_key : ccache-build${{ matrix.bit }}-${{ inputs.compiler }}
279
+ ccache_options : |
280
+ cache_dir=$GITHUB_WORKSPACE/.ccache
281
+ max_size=500M
282
+ sloppiness=locale,time_macros
283
+ compiler_check=none
269
284
270
285
- name : Running custom command
271
286
if : ${{ inputs.command != '' }}
0 commit comments