Skip to content

Commit 03698dc

Browse files
committed
Update MSYS2 to 2020-05-01
1 parent 9f2fe0e commit 03698dc

File tree

6 files changed

+38
-5
lines changed

6 files changed

+38
-5
lines changed

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ jobs:
7474
ridk version
7575
}
7676
- name: gem install openssl
77-
if: (matrix.ruby >= '2.4') && (matrix.ruby != 'mswin')
77+
if: (matrix.ruby >= '2.4') && (matrix.ruby <= '3.2')
7878
run: gem install openssl -N

common.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const colors = {
1414
}
1515
const rst = '\x1b[0m'
1616

17+
export const version = JSON.parse(fs.readFileSync(`${__dirname}\\package.json`, 'utf8')).version
18+
1719
export const download = async (uri, dest, log = true) => {
1820
// make sure the folder exists
1921
if (!fs.existsSync(path.dirname(dest))) {

dist/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ module.exports = require("assert");
398398

399399
"use strict";
400400
__webpack_require__.r(__webpack_exports__);
401+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "version", function() { return version; });
401402
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "download", function() { return download; });
402403
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ruby", function() { return ruby; });
403404
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "execSync", function() { return execSync; });
@@ -422,6 +423,8 @@ const colors = {
422423
}
423424
const rst = '\x1b[0m'
424425

426+
const version = JSON.parse(fs.readFileSync(__webpack_require__.ab + "package.json", 'utf8')).version
427+
425428
const download = async (uri, dest, log = true) => {
426429
// make sure the folder exists
427430
if (!fs.existsSync(path.dirname(dest))) {
@@ -711,7 +714,7 @@ const run = async () => {
711714
* used when MSYS2 install or server have problems
712715
*/
713716
RELEASE_ASSET = fs.lstatSync('C:\\msys64').isSymbolicLink() ?
714-
'msys2-2020-04-22' : null
717+
'msys2-2020-05-01' : null
715718
if (RELEASE_ASSET) {
716719
msSt = grpSt('Updating MSYS2')
717720
await installMSYS2()
@@ -1721,7 +1724,7 @@ module.exports = require("fs");
17211724

17221725
if (core.getInput('ruby-version') !== '') {
17231726
const fn = `${process.env.RUNNER_TEMP}\\setup_ruby.js`
1724-
common.log(' Running ruby/setup-ruby')
1727+
common.log(` Running ruby/setup-ruby ${common.version}`)
17251728
const msSt = performance.now()
17261729
await common.download('https://raw.githubusercontent.com/ruby/setup-ruby/v1/dist/index.js', fn, false)
17271730
await require(fn).run()

dist/package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "setup-ruby-pkgs",
3+
"version": "1.6.0",
4+
"description": "Install packages and update builds tools for Ruby",
5+
"main": "index.js",
6+
"scripts": {
7+
"lint": "eslint *.js",
8+
"package": "ncc build index.js -o dist"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/MSP-Greg/setup-ruby-pkgs.git"
13+
},
14+
"keywords": [
15+
"actions",
16+
"ruby",
17+
"setup",
18+
"windows",
19+
"mingw",
20+
"mswin"
21+
],
22+
"author": "MSP-Greg",
23+
"license": "MIT",
24+
"dependencies": {
25+
"@actions/core": "^1.2.3",
26+
"@actions/http-client": "^1.0.8"
27+
}
28+
}

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
if (core.getInput('ruby-version') !== '') {
3131
const fn = `${process.env.RUNNER_TEMP}\\setup_ruby.js`
32-
common.log(' Running ruby/setup-ruby')
32+
common.log(` Running ruby/setup-ruby ${common.version}`)
3333
const msSt = performance.now()
3434
await common.download('https://raw.githubusercontent.com/ruby/setup-ruby/v1/dist/index.js', fn, false)
3535
await require(fn).run()

mingw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export const run = async () => {
196196
* used when MSYS2 install or server have problems
197197
*/
198198
RELEASE_ASSET = fs.lstatSync('C:\\msys64').isSymbolicLink() ?
199-
'msys2-2020-04-22' : null
199+
'msys2-2020-05-01' : null
200200
if (RELEASE_ASSET) {
201201
msSt = grpSt('Updating MSYS2')
202202
await installMSYS2()

0 commit comments

Comments
 (0)