mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
Fixes include when using matrix and strategy build. (#415)
* fixes include directive of strategy build. * Adds test for include and exclude in matrix builds. * ubuntu-16.04 instead of 20.04 * Adds more platforms for runner_test Prevent most "skipping unsupported platform messages". * correct printing for unsupported platform * fix merge
This commit is contained in:
parent
2202cd3cba
commit
b4f337a5c3
4 changed files with 42 additions and 10 deletions
|
@ -258,7 +258,10 @@ func (rc *RunContext) isEnabled(ctx context.Context) bool {
|
|||
|
||||
img := rc.platformImage()
|
||||
if img == "" {
|
||||
l.Infof("\U0001F6A7 Skipping unsupported platform '%+v'", job.RunsOn())
|
||||
for _, runnerLabel := range job.RunsOn() {
|
||||
platformName := rc.ExprEval.Interpolate(runnerLabel)
|
||||
l.Infof("\U0001F6A7 Skipping unsupported platform '%+v'", platformName)
|
||||
}
|
||||
return false
|
||||
}
|
||||
return true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue