Skip to content

Commit 639c907

Browse files
committed
build(ci): Remove ineffective MinGW-w64 system path caching
The Cache MinGW-w64 Dependencies step attempted to cache system paths (/usr/lib/gcc/i686-w64-mingw32, /usr/i686-w64-mingw32) which is problematic due to permission issues with actions/cache when handling root-owned paths. Additionally, the Install MinGW-w64 Toolchain step ran unconditionally without checking cache-hit status, making the cache completely redundant. Remove the cache step entirely and rely on apt-get install which is fast enough (~4s at 76MB/s) and reliable.
1 parent ff7557a commit 639c907

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,6 @@ jobs:
195195
- name: Checkout Code
196196
uses: actions/checkout@v4
197197

198-
- name: Cache MinGW-w64 Dependencies
199-
id: cache-mingw-deps
200-
uses: actions/cache@v4
201-
with:
202-
path: |
203-
/usr/lib/gcc/i686-w64-mingw32
204-
/usr/i686-w64-mingw32
205-
key: mingw-w64-deps-${{ runner.os }}-v1
206-
207198
- name: Install MinGW-w64 Toolchain
208199
run: |
209200
sudo apt-get update
@@ -292,15 +283,6 @@ jobs:
292283
- name: Checkout Code
293284
uses: actions/checkout@v4
294285

295-
- name: Cache MinGW-w64 Dependencies
296-
id: cache-mingw-deps
297-
uses: actions/cache@v4
298-
with:
299-
path: |
300-
/usr/lib/gcc/i686-w64-mingw32
301-
/usr/i686-w64-mingw32
302-
key: mingw-w64-deps-${{ runner.os }}-v1
303-
304286
- name: Install MinGW-w64 Toolchain
305287
run: |
306288
sudo apt-get update

0 commit comments

Comments
 (0)