@@ -35979,6 +35979,8 @@ var __webpack_exports__ = {};
3597935979/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(9896);
3598035980/* harmony import */ var yaml__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(8815);
3598135981/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(7484);
35982+ /* harmony import */ var _actions_exec__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(5236);
35983+
3598235984
3598335985
3598435986
@@ -35988,7 +35990,9 @@ function run() {
3598835990 getRubyVersion('dev.yml')
3598935991 _actions_core__WEBPACK_IMPORTED_MODULE_2__.endGroup()
3599035992
35991- // setupDependencies()
35993+ _actions_core__WEBPACK_IMPORTED_MODULE_2__.startGroup('Setting up Linux dependencies')
35994+ setupDependencies('tmp/.shopify-build/**/*.yml')
35995+ _actions_core__WEBPACK_IMPORTED_MODULE_2__.endGroup()
3599235996}
3599335997
3599435998function getRubyVersion(path) {
@@ -36027,12 +36031,12 @@ function setupDependencies(glob) {
3602736031 let aptRepos = []
3602836032
3602936033 fs__WEBPACK_IMPORTED_MODULE_0__.globSync(glob).forEach(file => {
36030- pipeline = yaml__WEBPACK_IMPORTED_MODULE_1__.parse(fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(file, 'utf8'))
36031- containers = pipeline.containers
36034+ let pipeline = yaml__WEBPACK_IMPORTED_MODULE_1__.parse(fs__WEBPACK_IMPORTED_MODULE_0__.readFileSync(file, 'utf8'))
36035+ let containers = pipeline.containers
3603236036 if (!containers) { return }
3603336037
3603436038 Object.values(containers).forEach(container => {
36035- apt = container.build?.apt
36039+ let apt = container.build?.apt
3603636040 if (!apt) { return }
3603736041
3603836042 aptKeys.push(...apt.keys || [])
@@ -36043,7 +36047,16 @@ function setupDependencies(glob) {
3604336047
3604436048 if (aptPackages.length == 0) { return }
3604536049
36046- // aptKeys.forEach(key => )
36050+ aptKeys.forEach(key => {
36051+ _actions_exec__WEBPACK_IMPORTED_MODULE_3__.exec(`curl -s ${key} | sudo apt-key add -`)
36052+ })
36053+
36054+ aptRepos.forEach(repo => {
36055+ _actions_exec__WEBPACK_IMPORTED_MODULE_3__.exec(`sudo sh -c echo ${repo} >> /etc/apt/sources.list.d/custom.list`)
36056+ })
36057+
36058+ _actions_exec__WEBPACK_IMPORTED_MODULE_3__.exec('sudo apt-get update')
36059+ _actions_exec__WEBPACK_IMPORTED_MODULE_3__.exec(`sudo apt-get install --yes --option DPkg::Lock::Timeout=60 ${aptPackages.join(' ')}`)
3604736060}
3604836061
3604936062var __webpack_exports__getRubyVersion = __webpack_exports__.hg;
0 commit comments