forked from dagger/dagger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(alt): Add a new type of CI runner (dagger#9182)
Signed-off-by: Gerhard Lazu <[email protected]>
- Loading branch information
Showing
5 changed files
with
183 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Dagger on Namespace - Local Engine | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
function: | ||
description: "Dagger function" | ||
type: string | ||
required: true | ||
size: | ||
description: "Runner size" | ||
type: number | ||
default: 16 | ||
required: false | ||
timeout: | ||
description: "Timeout if not finished after this many minutes" | ||
type: number | ||
default: 10 | ||
required: false | ||
dev: | ||
description: "Use a development version of Dagger" | ||
type: string | ||
default: "false" | ||
required: false | ||
ubuntu: | ||
description: "Ubuntu version" | ||
type: string | ||
default: "24.04" | ||
required: false | ||
|
||
jobs: | ||
local-dagger-engine: | ||
if: ${{ github.repository == 'dagger/dagger' }} | ||
runs-on: | ||
- nscloud-ubuntu-${{ inputs.ubuntu }}-amd64-${{ inputs.size }}x32 | ||
timeout-minutes: ${{ inputs.timeout }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: ${{ inputs.function }} | ||
uses: ./.github/actions/call | ||
with: | ||
function: ${{ inputs.function }} | ||
dev-engine: ${{ inputs.dev }} | ||
- name: ${{ inputs.function }} (CACHE TEST) | ||
uses: ./.github/actions/call | ||
with: | ||
function: ${{ inputs.function }} | ||
dev-engine: ${{ inputs.dev }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Dagger on Namespace - Remote Engine | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
function: | ||
description: "Dagger function" | ||
type: string | ||
required: true | ||
size: | ||
description: "Runner size - used by the Dagger Engine too" | ||
type: number | ||
default: 16 | ||
required: false | ||
timeout: | ||
description: "Timeout if not finished after this many minutes" | ||
type: number | ||
default: 10 | ||
required: false | ||
dagger: | ||
description: "Dagger version" | ||
type: string | ||
default: "0.15.0" | ||
required: false | ||
ubuntu: | ||
description: "Ubuntu version" | ||
type: string | ||
default: "24.04" | ||
required: false | ||
|
||
jobs: | ||
remote-dagger-engine: | ||
if: ${{ github.repository == 'dagger/dagger' }} | ||
runs-on: | ||
- nscloud-ubuntu-${{ inputs.ubuntu }}-amd64-${{ inputs.size }}x32 | ||
- namespace-experiments:dagger.integration=enabled;dagger.version=${{ inputs.dagger }} | ||
timeout-minutes: ${{ inputs.timeout }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
- name: ${{ inputs.function }} | ||
uses: ./.github/actions/call | ||
with: | ||
function: ${{ inputs.function }} | ||
version: v${{ inputs.dagger }} | ||
dev-engine: ${{ inputs.dev }} | ||
- name: ${{ inputs.function }} (CACHE TEST) | ||
uses: ./.github/actions/call | ||
with: | ||
function: ${{ inputs.function }} | ||
version: v${{ inputs.dagger }} | ||
dev-engine: ${{ inputs.dev }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Alternative CI Runners 2 | ||
|
||
on: | ||
# Run the workflow every day TWICE: | ||
# 1. 9:06AM UTC (low activity) | ||
# 2. 9:26AM UTC (cache test - high chance of no code changes) | ||
schedule: | ||
- cron: "6,26 9 * * *" | ||
# Enable manual trigger for on-demand runs - helps when debugging | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
docs-lint-on-namespace-remote-engine: | ||
uses: ./.github/workflows/_dagger_on_namespace_remote_engine.yml | ||
with: | ||
function: docs lint | ||
timeout: 20 | ||
docs-lint-on-namespace-local-engine: | ||
uses: ./.github/workflows/_dagger_on_namespace_local_engine.yml | ||
with: | ||
function: docs lint | ||
dev: true | ||
timeout: 20 | ||
|
||
test-cli-engine-on-namespace-remote-engine: | ||
needs: docs-lint-on-namespace-remote-engine | ||
uses: ./.github/workflows/_dagger_on_namespace_remote_engine.yml | ||
with: | ||
function: test specific --run='TestCLI|TestEngine' --race=true --parallel=16 | ||
timeout: 20 | ||
|
||
sdk-go-on-namespace-remote-engine: | ||
needs: docs-lint-on-namespace-remote-engine | ||
uses: ./.github/workflows/_dagger_on_namespace_remote_engine.yml | ||
with: | ||
function: check --targets=sdk/go | ||
sdk-go-dev-on-namespace-local-engine: | ||
needs: sdk-go-on-namespace-remote-engine | ||
uses: ./.github/workflows/_dagger_on_namespace_local_engine.yml | ||
with: | ||
function: check --targets=sdk/go | ||
dev: true | ||
|
||
sdk-python-on-namespace-remote-engine: | ||
needs: docs-lint-on-namespace-remote-engine | ||
uses: ./.github/workflows/_dagger_on_namespace_remote_engine.yml | ||
with: | ||
function: check --targets=sdk/python | ||
sdk-python-dev-on-namespace-local-engine: | ||
needs: sdk-python-on-namespace-remote-engine | ||
uses: ./.github/workflows/_dagger_on_namespace_local_engine.yml | ||
with: | ||
function: check --targets=sdk/python | ||
dev: true | ||
|
||
sdk-typescript-on-namespace-remote-engine: | ||
needs: docs-lint-on-namespace-remote-engine | ||
uses: ./.github/workflows/_dagger_on_namespace_remote_engine.yml | ||
with: | ||
function: check --targets=sdk/typescript | ||
sdk-typescript-dev-on-namespace-local-engine: | ||
needs: sdk-typescript-on-namespace-remote-engine | ||
uses: ./.github/workflows/_dagger_on_namespace_local_engine.yml | ||
with: | ||
function: check --targets=sdk/typescript | ||
dev: true |