Skip to content

Commit 8e9d2d6

Browse files
authored
force macos github actions to work (#489)
1 parent c2892e2 commit 8e9d2d6

File tree

6 files changed

+59
-44
lines changed

6 files changed

+59
-44
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
# repository_dispatch is a newer github-actions feature that will allow building from triggers other than code merge/PR
1111
repository_dispatch:
1212
types: [build]
13+
workflow_dispatch:
1314

1415
name: Build EmuConfigurator
1516
jobs:
@@ -24,7 +25,8 @@ jobs:
2425
fail-fast: false
2526
max-parallel: 3
2627
matrix:
27-
os: [ubuntu-latest, macos-latest, windows-latest]
28+
#https://github.com/actions/runner-images
29+
os: [ubuntu-22.04, macos-11, windows-2022]
2830
outputs:
2931
buildtag: ${{ steps.ids.outputs.buildtag }}
3032
shortsha: ${{ steps.ids.outputs.shortsha }}
@@ -66,12 +68,28 @@ jobs:
6668
echo "ShortSha: ${{ steps.ids.outputs.shortsha }}"
6769
continue-on-error: true
6870

71+
- name: which python
72+
run: |
73+
echo "python version:"
74+
python --version
75+
which python
76+
6977
# build stuff
7078
- name: yarn install
71-
run: yarn install --immutable --immutable-cache --check-cache
79+
run: |
80+
npm config set fetch-retry-maxtimeout 600000 -g
81+
yarn install --immutable --immutable-cache --check-cache
82+
83+
# this forces appdmg install even though package.json optionalDependencies has/needs it.
84+
- name: setup macos
85+
if: ${{ startsWith(matrix.os, 'macos') }}
86+
run: |
87+
npm install [email protected] --python=python2.7
88+
continue-on-error: true
7289

7390
- name: yarn gulp clean-release
7491
run: yarn gulp clean-release
92+
continue-on-error: true
7593

7694
- name: yarn gulp release --linux64
7795
if: ${{ startsWith(matrix.os, 'ubuntu') }}

gulp-appdmg.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

gulp-macdmg.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
var appdmg = require('appdmg');
2+
var through = require('through2');
3+
var PluginError = require('plugin-error');
4+
var log = require('fancy-log');
5+
6+
var PLUGIN_NAME = 'gulp-macdmg';
7+
8+
module.exports = function(options) {
9+
var stream = through.obj(function(file, encoding, next) {
10+
next();
11+
}, function(callback) {
12+
var self = this;
13+
var ee = appdmg(options);
14+
15+
ee.on('progress', function(info) {
16+
log(info.current + '/' + info.total + ' ' + info.type + ' ' + (info.title || info.status));
17+
});
18+
19+
ee.on('error', function(err) {
20+
self.emit('error', new PluginError(PLUGIN_NAME, err));
21+
callback();
22+
});
23+
24+
ee.on('finish', callback);
25+
});
26+
27+
// returning the file stream
28+
stream.resume();
29+
return stream;
30+
};

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ function release_osx64() {
678678
}
679679

680680
//var appdmg = require('gulp-appdmg');
681-
const appdmg = require('./gulp-appdmg');
681+
const appdmg = require('./gulp-macdmg');
682682

683683

684684
// The appdmg does not generate the folder correctly, manually

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@
9090
"targz": "^1.0.1",
9191
"temp": "^0.9.4",
9292
"vinyl-source-stream": "^2.0.0",
93-
"yarn": "^1.22.15"
93+
"yarn": "1.22"
9494
},
9595
"optionalDependencies": {
96-
"appdmg": "^0.6.4",
97-
"macos-alias": "^0.2.11"
96+
"appdmg": "^0.6.6"
9897
}
9998
}

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ appdmg@^0.6.0:
251251
path-exists "^4.0.0"
252252
repeat-string "^1.5.4"
253253

254-
appdmg@^0.6.4:
254+
appdmg@^0.6.6:
255255
version "0.6.6"
256256
resolved "https://registry.yarnpkg.com/appdmg/-/appdmg-0.6.6.tgz#d06bd82b530032fd7a8f0970a1c6ee6196e1efce"
257257
integrity sha512-GRmFKlCG+PWbcYF4LUNonTYmy0GjguDy6Jh9WP8mpd0T6j80XIJyXBiWlD0U+MLNhqV9Nhx49Gl9GpVToulpLg==
@@ -3506,7 +3506,7 @@ lru_map@^0.3.3:
35063506
resolved "https://registry.yarnpkg.com/lru_map/-/lru_map-0.3.3.tgz#b5c8351b9464cbd750335a79650a0ec0e56118dd"
35073507
integrity sha1-tcg1G5Rky9dQM1p5ZQoOwOVhGN0=
35083508

3509-
macos-alias@^0.2.11, macos-alias@~0.2.5:
3509+
macos-alias@~0.2.5:
35103510
version "0.2.11"
35113511
resolved "https://registry.yarnpkg.com/macos-alias/-/macos-alias-0.2.11.tgz#feeea6c13ba119814a43fc43c470b31e59ef718a"
35123512
integrity sha1-/u6mwTuhGYFKQ/xDxHCzHlnvcYo=
@@ -5990,10 +5990,10 @@ yargs@^7.1.0:
59905990
y18n "^3.2.1"
59915991
yargs-parser "^5.0.0"
59925992

5993-
yarn@^1.22.15:
5994-
version "1.22.15"
5995-
resolved "https://registry.yarnpkg.com/yarn/-/yarn-1.22.15.tgz#3431d5f134d3c752a57a9dd7f5e1167627ca3cc3"
5996-
integrity sha512-AzoEDxj256BOS/jqDXA3pjyhmi4FRBBUMgYoTHI4EIt2EhREkvH0soPVEtnD+DQIJfU5R9bKhcZ1H9l8zPWeoA==
5993+
5994+
version "1.22.21"
5995+
resolved "https://registry.yarnpkg.com/yarn/-/yarn-1.22.21.tgz#1959a18351b811cdeedbd484a8f86c3cc3bbaf72"
5996+
integrity sha512-ynXaJsADJ9JiZ84zU25XkPGOvVMmZ5b7tmTSpKURYwgELdjucAOydqIOrOfTxVYcNXe91xvLZwcRh68SR3liCg==
59975997

59985998
59995999
version "2.4.1"

0 commit comments

Comments
 (0)