Skip to content

Commit

Permalink
ci: Migrate runners from buildjet to github
Browse files Browse the repository at this point in the history
  • Loading branch information
pratapaprasanna authored and mohanarpit committed Dec 22, 2022
1 parent 2dd106e commit a70ca2b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/client-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defaults:

jobs:
build:
runs-on: buildjet-8vcpu-ubuntu-2004
runs-on: ubuntu-latest-4-cores
# Only run this workflow for internally triggered events
if: |
github.event.pull_request.head.repo.full_name == github.repository ||
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
needs:
- prelude

runs-on: buildjet-8vcpu-ubuntu-2004
runs-on: ubuntu-latest-4-cores

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/perf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defaults:

jobs:
perf-test:
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest-4-cores
# Only run this workflow for internally triggered events
if: |
github.event.pull_request.head.repo.full_name == github.repository ||
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/server-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defaults:

jobs:
build:
runs-on: buildjet-8vcpu-ubuntu-2004
runs-on: ubuntu-latest-8-cores
# Only run this workflow for internally triggered events
if: |
github.event.pull_request.head.repo.full_name == github.repository ||
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test-build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
(github.event_name == 'pull_request_review' &&
github.event.review.state == 'approved' &&
github.event.pull_request.head.repo.full_name == github.repository)
runs-on: buildjet-8vcpu-ubuntu-2004
runs-on: ubuntu-latest-4-cores
defaults:
run:
working-directory: app/client
Expand Down Expand Up @@ -399,7 +399,7 @@ jobs:

# Only run if the build step is successful
if: success()
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest-4-cores

defaults:
run:
Expand Down Expand Up @@ -634,7 +634,7 @@ jobs:
(github.event_name == 'pull_request_review' &&
github.event.review.state == 'approved' &&
github.event.pull_request.head.repo.full_name == github.repository))
runs-on: buildjet-4vcpu-ubuntu-2004
runs-on: ubuntu-latest-4-cores
defaults:
run:
shell: bash
Expand Down Expand Up @@ -1483,7 +1483,7 @@ jobs:
with:
name: failed-spec
path: ~/failed_spec

# Download failed_spec_fat list for all fat container jobs
- uses: actions/download-artifact@v2
if: needs.fat-container-test.result
Expand All @@ -1496,7 +1496,7 @@ jobs:
- name: "combine all specs"
if: needs.ui-test.result != 'success'
run: cat ~/failed_spec/failed_spec* >> ~/combined_failed_spec

# Incase for any fat-container job failure, create combined failed spec
- name: "combine all specs for fat"
if: needs.fat-container-test.result != 'success'
Expand Down Expand Up @@ -1532,7 +1532,7 @@ jobs:
with:
name: combined_failed_spec
path: ~/combined_failed_spec

# Upload combined failed fat spec list to a file
# This is done for debugging.
- name: upload combined failed spec
Expand All @@ -1557,8 +1557,8 @@ jobs:
package:
needs: ui-test
runs-on: buildjet-4vcpu-ubuntu-2004
# Set permissions since we're using OIDC token authentication between Depot and Github
runs-on: ubuntu-latest
# Set permissions since we're using OIDC token authentication between Depot and GitHub
permissions:
contents: read
id-token: write
Expand Down

0 comments on commit a70ca2b

Please sign in to comment.