ci(validate): choose best matching runner

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2025-05-23 09:24:52 +02:00
parent c71ed01f8e
commit 9c0a32d09c

View File

@@ -61,12 +61,14 @@ jobs:
target.platforms.forEach(platform => {
includes.push({
target: targetName,
platform: platform
platform: platform,
runner: platform.startsWith('linux/arm') ? 'ubuntu-24.04-arm' : 'ubuntu-24.04'
});
});
} else {
includes.push({
target: targetName
target: targetName,
runner: 'ubuntu-24.04'
});
}
}
@@ -75,7 +77,7 @@ jobs:
});
validate:
runs-on: ubuntu-24.04
runs-on: ${{ matrix.runner }}
needs:
- prepare
strategy: