Skip to content

Commit

Permalink
ci: route large drvs to self-hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
lovesegfault committed Oct 12, 2023
1 parent e5eabfb commit 8d9ca93
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,20 @@ jobs:
name: .key,
evalOnly: false,
hostPlatform: .value.hostPlatform,
large: .value.large,
attr: "packages.\(.value.hostPlatform).\(.key)"
})
| map(
if .hostPlatform == "x86_64-linux" then .runsOn="ubuntu-latest"
elif .hostPlatform == "aarch64-linux" then .runsOn="ubuntu-latest"
elif .hostPlatform == "x86_64-darwin" then .runsOn="macos-latest"
else .evalOnly=true | .runsOn="ubuntu-latest"
if .large then
if .hostPlatform == "x86_64-linux" then .runsOn=["x86_64-linux", "large"]
else .evalOnly=true | .runsOn="ubuntu-latest"
end
else
if .hostPlatform == "x86_64-linux" then .runsOn="ubuntu-latest"
elif .hostPlatform == "aarch64-linux" then .runsOn="ubuntu-latest"
elif .hostPlatform == "x86_64-darwin" then .runsOn="macos-latest"
else .evalOnly=true | .runsOn="ubuntu-latest"
end
end
)
' >"$TMP/hostAttrs.json"
Expand Down

0 comments on commit 8d9ca93

Please sign in to comment.