mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
revert hosted linux+x86-64 for now
This commit is contained in:
parent
a2da161839
commit
db7a6b87c5
2 changed files with 10 additions and 3 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -20,6 +20,7 @@ jobs:
|
|||
outputs:
|
||||
os: ${{ steps.platform.outputs.os }}
|
||||
build-os: ${{ steps.platform.outputs.build-os }}
|
||||
container: ${{ steps.platform.outputs.container }}
|
||||
test-matrix: ${{ steps.platform.outputs.test-matrix }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
@ -34,6 +35,7 @@ jobs:
|
|||
|
||||
build:
|
||||
runs-on: ${{ fromJson(needs.get-platform.outputs.build-os) }}
|
||||
container: ${{ fromJson(needs.get-platform.outputs.container) }}
|
||||
needs: [get-platform]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
|
@ -15,6 +15,7 @@ const platform = Deno.env.get("PLATFORM") ?? panic("$PLATFORM not set")
|
|||
|
||||
let os: string | string[]
|
||||
let buildOs: string | string[]
|
||||
let container: string | undefined
|
||||
let testMatrix: { os: string | string[], container: string | undefined }[]
|
||||
|
||||
switch(platform) {
|
||||
|
@ -35,11 +36,14 @@ switch(platform) {
|
|||
break
|
||||
case "linux+x86-64":
|
||||
os = "ubuntu-latest"
|
||||
buildOs = ["self-hosted", "linux", "X64"]
|
||||
// Using GHA resources for now, until we resolve network issues with our runners
|
||||
// buildOs = ["self-hosted", "linux", "X64"]
|
||||
buildOs = os
|
||||
container = "ghcr.io/teaxyz/infuser:latest"
|
||||
testMatrix = [
|
||||
{ os, container: undefined },
|
||||
{ os: buildOs, container: undefined },
|
||||
{ os, container: "ghcr.io/teaxyz/infuser:latest" },
|
||||
// { os: buildOs, container: undefined },
|
||||
{ os, container },
|
||||
{ os, container: "debian:buster-slim" },
|
||||
]
|
||||
break
|
||||
|
@ -49,6 +53,7 @@ switch(platform) {
|
|||
|
||||
const output = `os=${JSON.stringify(os)}\n` +
|
||||
`build-os=${JSON.stringify(buildOs)}\n` +
|
||||
`container=${JSON.stringify(container)}\n` +
|
||||
`test-matrix=${JSON.stringify(testMatrix)}\n`
|
||||
|
||||
Deno.stdout.write(new TextEncoder().encode(output))
|
||||
|
|
Loading…
Reference in a new issue