diff --git a/tools/gen_workflow_yml.ts b/tools/gen_workflow_yml.ts index ac639d7483..226ae3ea9b 100644 --- a/tools/gen_workflow_yml.ts +++ b/tools/gen_workflow_yml.ts @@ -166,12 +166,36 @@ function generateBuildJobs(): Record { return jobs; } +function generateTestJobs(): Record { + const jobs: Record = {}; + + for (const os of platforms) { + for (const kind of kinds) { + if (os != "linux" && kind == "debug") continue; + + jobs[`test_${os}_${kind}`] = { + name: `test / ${os} / ${kind}`, + "runs-on": slowRunners[os], + "timeout-minutes": 60, + step: [`test_${os}_${kind}`], + env, + steps: [ + ...chechout, + ], + }; + } + } + + return jobs; +} + const ci = { name: "ci", // FIXME on: [/*"push",*/ "pull_request"], jobs: { ...generateBuildJobs(), + ...generateTestJobs(), }, };