Skip to content

Commit 861e4cd

Browse files
authored
Merge pull request #45 from crazy-max/fix-runner-sel
fix arm runners selection by checking if repo is private
2 parents 994a341 + 38dd45a commit 861e4cd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/bake.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ jobs:
229229
target = targets[0];
230230
});
231231
232+
const privateRepo = GitHub.context.payload.repository?.private ?? false;
232233
await core.group(`Set includes`, async () => {
233234
let includes = [];
234235
const platforms = def.target[target].platforms || [];
@@ -244,7 +245,7 @@ jobs:
244245
includes.push({
245246
index: index,
246247
platform: platform,
247-
runner: GitHub.isGHES && platform.startsWith('linux/arm') ? 'ubuntu-24.04-arm' : 'ubuntu-24.04'
248+
runner: (!privateRepo && platform.startsWith('linux/arm')) ? 'ubuntu-24.04-arm' : 'ubuntu-24.04' // FIXME: ubuntu-24.04-arm runner not yet available for private repos
248249
});
249250
});
250251
}

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ jobs:
184184
185185
const inpBuildPlatforms = Util.getInputList('build-platforms');
186186
187+
const privateRepo = GitHub.context.payload.repository?.private ?? false;
187188
await core.group(`Set includes`, async () => {
188189
let includes = [];
189190
if (inpBuildPlatforms.length > inpMatrixSizeLimit) {
@@ -198,7 +199,7 @@ jobs:
198199
includes.push({
199200
index: index,
200201
platform: platform,
201-
runner: GitHub.isGHES && platform.startsWith('linux/arm') ? 'ubuntu-24.04-arm' : 'ubuntu-24.04'
202+
runner: (!privateRepo && platform.startsWith('linux/arm')) ? 'ubuntu-24.04-arm' : 'ubuntu-24.04' // FIXME: ubuntu-24.04-arm runner not yet available for private repos
202203
});
203204
});
204205
}

0 commit comments

Comments
 (0)