Skip to content

Commit 24213e3

Browse files
committed
CI: sync main.yml
1 parent 02e3236 commit 24213e3

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
include: [
18-
{ msystem: MSYS, runner: windows-2025 },
18+
{ msystem: MSYS, runner: windows-2022 },
1919
]
2020
name: ${{ matrix.msystem }}
2121
runs-on: ${{ matrix.runner }}
22-
2322
steps:
2423
- name: Gather Facts
2524
id: facts
2625
run : |
2726
Get-PSDrive -PSProvider FileSystem | Format-Table -AutoSize -Wrap
2827
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}}
2929
$BUILD_DRIVE = Split-Path $env:GITHUB_WORKSPACE -Qualifier
3030
echo "drive=$BUILD_DRIVE" >> $env:GITHUB_OUTPUT
3131
@@ -52,11 +52,13 @@ jobs:
5252
msystem: ${{ matrix.msystem }}
5353
install: git python base-devel
5454
update: true
55+
location: '${{ steps.facts.outputs.drive }}\M'
5556

5657
- name: Add staging repo
5758
shell: msys2 {0}
5859
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
6062
6163
- name: Update using staging
6264
run: |
@@ -71,6 +73,7 @@ jobs:
7173
7274
- name: CI-Build
7375
shell: msys2 {0}
76+
id: build
7477
run: |
7578
cd "$(cygpath '${{ steps.facts.outputs.drive }}/_')"
7679
./.ci/ci-build.sh
@@ -81,21 +84,29 @@ jobs:
8184
with:
8285
name: ${{ matrix.msystem }}-packages
8386
path: ${{ steps.facts.outputs.drive }}/_/artifacts/*.pkg.tar.*
87+
if-no-files-found: ignore
8488

8589
package-grokker:
8690
runs-on: ubuntu-latest
8791
needs: build
92+
name: package-grokker-${{ matrix.msystem }}
93+
strategy:
94+
fail-fast: false
95+
matrix:
96+
include:
97+
- msystem: MSYS
98+
repo: msys
8899

89100
steps:
90101
- uses: actions/download-artifact@v4
91102
id: artifacts
92103
continue-on-error: true
93104
with:
94-
name: MSYS-packages
105+
name: ${{ matrix.msystem }}-packages
95106
path: artifacts
96107
- name: Grok packages
97108
uses: jeremyd2019/package-grokker/grok-artifacts@main
98109
if: steps.artifacts.outcome == 'success'
99110
with:
100-
repo: msys
111+
repo: ${{ matrix.repo }}
101112
path: artifacts

0 commit comments

Comments
 (0)