Skip to content

Commit 4c14f72

Browse files
committed
MSYS2 - add pacman-mirrors
1 parent 00c994b commit 4c14f72

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

dist/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,13 @@ const installMSYS2 = async () => {
496496

497497
// install MinGW packages from mingw input
498498
const runMingw = async () => {
499+
500+
if (ruby.abiVers >= '2.4') {
501+
msSt = grpSt(`pacman.exe -Sy pacman-mirrors`)
502+
execSync(`pacman.exe -Sy ${args} pacman-mirrors`)
503+
grpEnd(msSt)
504+
}
505+
499506
if (mingw.includes('_upgrade_')) {
500507
if (ruby.abiVers >= '2.4') {
501508
await updateGCC()

dist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-ruby-pkgs",
3-
"version": "1.24.0",
3+
"version": "1.25.0",
44
"description": "Install packages and update builds tools for Ruby",
55
"main": "index.js",
66
"scripts": {

mingw.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ const installMSYS2 = async () => {
121121

122122
// install MinGW packages from mingw input
123123
const runMingw = async () => {
124+
125+
if (ruby.abiVers >= '2.4') {
126+
msSt = grpSt(`pacman.exe -Sy pacman-mirrors`)
127+
execSync(`pacman.exe -Sy ${args} pacman-mirrors`)
128+
grpEnd(msSt)
129+
}
130+
124131
if (mingw.includes('_upgrade_')) {
125132
if (ruby.abiVers >= '2.4') {
126133
await updateGCC()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-ruby-pkgs",
3-
"version": "1.24.0",
3+
"version": "1.25.0",
44
"description": "Install packages and update builds tools for Ruby",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)