Skip to content

Commit bb65be9

Browse files
committed
Cache the install of msys2.
1 parent 7e63f42 commit bb65be9

2 files changed

Lines changed: 4 additions & 24 deletions

File tree

.github/workflows/aarch64-pc-windows-gnu.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,16 @@ name: aarch64-pc-windows-gnu
33
on: [push, pull_request]
44

55
jobs:
6-
setup-aarch64-pc-windows-gnu:
7-
runs-on: windows-11-arm
8-
steps:
9-
- uses: actions/checkout@v4
10-
- name: Setup MinGW
11-
uses: msys2/setup-msys2@v2
12-
with:
13-
msystem: CLANGARM64
14-
update: true
15-
install: mingw-w64-clang-aarch64-toolchain mingw-w64-clang-aarch64-cmake
16-
176
build-aarch64-pc-windows-gnu:
187
runs-on: windows-11-arm
19-
needs: setup-aarch64-pc-windows-gnu
208
steps:
219
- uses: actions/checkout@v4
2210
- name: Setup MinGW
2311
uses: msys2/setup-msys2@v2
2412
with:
2513
msystem: CLANGARM64
2614
update: true
15+
cache: true
2716
install: mingw-w64-clang-aarch64-toolchain mingw-w64-clang-aarch64-cmake
2817
- name: Configure
2918
shell: msys2 {0}
@@ -49,6 +38,7 @@ jobs:
4938
with:
5039
msystem: CLANGARM64
5140
update: true
41+
cache: true
5242
install: mingw-w64-clang-aarch64-toolchain mingw-w64-clang-aarch64-cmake
5343
- name: Download build artifacts
5444
uses: actions/download-artifact@v4

.github/workflows/x86_64-pc-windows-gnu.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,16 @@ name: x86_64-pc-windows-gnu
33
on: [push, pull_request]
44

55
jobs:
6-
setup-x86_64-pc-windows-gnu:
7-
runs-on: windows-latest
8-
steps:
9-
- uses: actions/checkout@v4
10-
- name: Setup MinGW
11-
uses: msys2/setup-msys2@v2
12-
with:
13-
msystem: MINGW64
14-
update: true
15-
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake
16-
176
build-x86_64-pc-windows-gnu:
187
runs-on: windows-latest
19-
needs: setup-x86_64-pc-windows-gnu
208
steps:
219
- uses: actions/checkout@v4
2210
- name: Setup MinGW
2311
uses: msys2/setup-msys2@v2
2412
with:
2513
msystem: MINGW64
2614
update: true
15+
cache: true
2716
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake
2817
- name: Configure
2918
shell: msys2 {0}
@@ -49,6 +38,7 @@ jobs:
4938
with:
5039
msystem: MINGW64
5140
update: true
41+
cache: true
5242
install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake
5343
- name: Download build artifacts
5444
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)