Skip to content

Commit

Permalink
Merge pull request #1 from youtube/isarkis-patch-1
Browse files Browse the repository at this point in the history
Set up self hosted runners
  • Loading branch information
isarkis committed May 14, 2024
2 parents 3a4f059 + d5fa27e commit e2968b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,18 @@ jobs:

build:
needs: [docker-build-image]
runs-on:
labels: linux-test-hosted
group: cobalt
runs-on: [self-hosted, chrobalt-linux-runner]
container: ${{ needs.docker-build-image.outputs.docker_tag }}
env:
DEPOT_TOOLS_UPDATE: 0
DEPOT_TOOLS_REPORT_BUILD: 0
DEPOT_TOOLS_COLLECT_METRICS: 0
DEPOT_TOOLS_METRICS: 0
SCCACHE_GCS_KEY: ${{ secrets.SCCACHE_GCS_KEY }}
SCCACHE: 1
SCCACHE_GCS_BUCKET: cobalt-actions-sccache-linux
SCCACHE_GCS_SERVICE_ACCOUNT: [email protected]
SCCACHE_GCS_RW_MODE: READ_WRITE
SCCACHE_IDLE_TIMEOUT: 0 # prevent sccache server from shutting down after long idle.

steps:
- name: Checkout
Expand All @@ -64,10 +66,6 @@ jobs:
run: df -h
- name: Du
run: du -ht 500M
- name: Place sccache key
run: echo "$SCCACHE_GCS_KEY" | base64 -d > /root/key.json
- name: Cat the key
run: cat /root/key.json
- name: sccache check
run: sccache -s
- name: gn gen
Expand Down
1 change: 0 additions & 1 deletion docker/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ ENV SCCACHE_GCS_BUCKET=githubactions-chrome-sccache
ENV SCCACHE_GCS_RW_MODE=READ_WRITE
ENV SCCACHE_GCS_KEY_PATH=/root/key.json
ENV SCCACHE_GCS_SERVICE_ACCOUNT=github-actions-bucket-access@cobalt-demo-330821.iam.gserviceaccount.com

0 comments on commit e2968b2

Please sign in to comment.