@@ -15,17 +15,17 @@ jobs:
15
15
fail-fast : false
16
16
matrix :
17
17
include : [
18
- { msystem: MSYS, runner: windows-2025 },
18
+ { msystem: MSYS, runner: windows-2022 },
19
19
]
20
20
name : ${{ matrix.msystem }}
21
21
runs-on : ${{ matrix.runner }}
22
-
23
22
steps :
24
23
- name : Gather Facts
25
24
id : facts
26
25
run : |
27
26
Get-PSDrive -PSProvider FileSystem | Format-Table -AutoSize -Wrap
28
27
Get-CIMInstance -Class Win32_Processor | Select-Object -Property Name
28
+ Get-CIMInstance Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum | Format-Table @{n="TotalPhysicalMemory";e={$_.Sum}}
29
29
$BUILD_DRIVE = Split-Path $env:GITHUB_WORKSPACE -Qualifier
30
30
echo "drive=$BUILD_DRIVE" >> $env:GITHUB_OUTPUT
31
31
@@ -52,11 +52,13 @@ jobs:
52
52
msystem : ${{ matrix.msystem }}
53
53
install : git python base-devel
54
54
update : true
55
+ location : ' ${{ steps.facts.outputs.drive }}\M'
55
56
56
57
- name : Add staging repo
57
58
shell : msys2 {0}
58
59
run : |
59
- sed -i '1s|^|[staging]\nServer = https://repo.msys2.org/staging/\nSigLevel = Never\n|' /etc/pacman.conf
60
+ cp /etc/pacman.conf /etc/pacman.conf.bak
61
+ grep -qFx '[staging]' /etc/pacman.conf || sed -i '/^# \[staging\]/,/^$/ s|^# ||g' /etc/pacman.conf
60
62
61
63
- name : Update using staging
62
64
run : |
71
73
72
74
- name : CI-Build
73
75
shell : msys2 {0}
76
+ id : build
74
77
run : |
75
78
cd "$(cygpath '${{ steps.facts.outputs.drive }}/_')"
76
79
./.ci/ci-build.sh
@@ -81,21 +84,29 @@ jobs:
81
84
with :
82
85
name : ${{ matrix.msystem }}-packages
83
86
path : ${{ steps.facts.outputs.drive }}/_/artifacts/*.pkg.tar.*
87
+ if-no-files-found : ignore
84
88
85
89
package-grokker :
86
90
runs-on : ubuntu-latest
87
91
needs : build
92
+ name : package-grokker-${{ matrix.msystem }}
93
+ strategy :
94
+ fail-fast : false
95
+ matrix :
96
+ include :
97
+ - msystem : MSYS
98
+ repo : msys
88
99
89
100
steps :
90
101
- uses : actions/download-artifact@v4
91
102
id : artifacts
92
103
continue-on-error : true
93
104
with :
94
- name : MSYS -packages
105
+ name : ${{ matrix.msystem }} -packages
95
106
path : artifacts
96
107
- name : Grok packages
97
108
uses : jeremyd2019/package-grokker/grok-artifacts@main
98
109
if : steps.artifacts.outcome == 'success'
99
110
with :
100
- repo : msys
111
+ repo : ${{ matrix.repo }}
101
112
path : artifacts
0 commit comments