Skip to content

Commit

Permalink
ci: use depot runners for smaller jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <[email protected]>
  • Loading branch information
sagikazarmark committed Aug 9, 2024
1 parent a0d15fd commit 0a2d3f5
Showing 1 changed file with 4 additions and 36 deletions.
40 changes: 4 additions & 36 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
jobs:
build:
name: Build
runs-on: ${{ github.actor == 'dependabot[bot]' && 'ubuntu-latest' || 'ubuntu-latest-large' }}
runs-on: depot-ubuntu-latest-8

steps:
- name: Checkout repository
Expand All @@ -40,29 +40,13 @@ jobs:

test:
name: Test
runs-on: ${{ github.actor == 'dependabot[bot]' && 'ubuntu-latest' || 'ubuntu-latest-large' }}
runs-on: depot-ubuntu-latest-8

steps:
# Required as a workaround for Dagger to properly detect Git metadata
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Free Disk Space
uses: jlumbroso/[email protected]
if: github.actor == 'dependabot[bot]'
with:
# Runs quick, run rm in background
tool-cache: true

# These run slower as use apt to uninstall packages
# Turned on by default, so we disable them
android: false
dotnet: false
haskell: false
large-packages: false
docker-images: false
swap-storage: false

- name: Run pipeline
uses: dagger/dagger-for-github@29a88e72255e732147ba18a670978b90bcc59efd # v6.4.0
with:
Expand Down Expand Up @@ -90,29 +74,13 @@ jobs:

lint:
name: Lint
runs-on: ${{ github.actor == 'dependabot[bot]' && 'ubuntu-latest' || 'ubuntu-latest-large' }}
runs-on: depot-ubuntu-latest-8

steps:
# Required as a workaround for Dagger to properly detect Git metadata
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Free Disk Space
uses: jlumbroso/[email protected]
if: github.actor == 'dependabot[bot]'
with:
# Runs quick, run rm in background
tool-cache: true

# These run slower as use apt to uninstall packages
# Turned on by default, so we disable them
android: false
dotnet: false
haskell: false
large-packages: false
docker-images: false
swap-storage: false

- name: Run pipeline
uses: dagger/dagger-for-github@29a88e72255e732147ba18a670978b90bcc59efd # v6.4.0
with:
Expand Down Expand Up @@ -231,7 +199,7 @@ jobs:

quickstart:
name: Quickstart
runs-on: ${{ github.actor == 'dependabot[bot]' && 'ubuntu-latest' || 'ubuntu-latest-large' }}
runs-on: depot-ubuntu-latest-8

steps:
- name: Checkout repository
Expand Down

0 comments on commit 0a2d3f5

Please sign in to comment.