Skip to content

Commit

Permalink
Fix docs and add read-only keys to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
blakehatch committed Jul 26, 2024
1 parent 534a102 commit 22219cf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
runs-on: ubuntu-22.04
environment: production
# Only run on main branch.
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: >- # v4.1.1
Expand All @@ -30,7 +29,8 @@ jobs:
bazel-contrib/setup-bazel@b388b84bb637e50cdae241d0f255670d4bd79f29
with:
bazelisk-cache: true
- name: Run Bazel tests
- name: Run Bazel tests for non-PR events
if: ${{ github.ref == 'refs/heads/main' }}
shell: bash
run: |
bazel test \
Expand All @@ -42,6 +42,21 @@ jobs:
--remote_header=x-nativelink-project=nativelink-ci \
//...
- name: Run Bazel tests for PR events
if: ${{ github.ref != 'refs/heads/main' }}
shell: bash
run: |
bazel test \
--remote_cache=${{ vars.NATIVELINK_COM_REMOTE_CACHE_URL }} \
--remote_header=${{ vars.NATIVELINK_COM_API_HEADER_RO }} \
--bes_backend=${{ vars.NATIVELINK_COM_BES_URL }} \
--bes_header=${{ vars.NATIVELINK_COM_API_HEADER_RO }} \
--bes_results_url=${{ vars.NATIVELINK_COM_BES_RESULTS_URL }} \
--remote_header=x-nativelink-project=nativelink-ci-pr \
--nogenerate_json_trace_profile \
--remote_upload_local_results=false \
//...
docker-compose-compiles-nativelink:
# The type of runner that the job will run on.
runs-on: large-ubuntu-22.04
Expand Down
2 changes: 0 additions & 2 deletions docs/src/content/docs/nativelink-cloud/api-key.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ your `.github/workflows` folder with the following added to your `jobs` section:
jobs:
build-test:
runs-on: ubuntu-22.04
environment: production
steps:
- name: Checkout
uses: >- # v4.1.1
Expand All @@ -35,7 +34,6 @@ jobs:
--bes_backend=${{ vars.NATIVELINK_COM_BES_URL }} \
--bes_header=${{ secrets.NATIVELINK_COM_API_HEADER }} \
--bes_results_url=${{ vars.NATIVELINK_COM_BES_RESULTS_URL }} \
--remote_header=x-nativelink-project=nativelink-ci \
//...
```
Expand Down

0 comments on commit 22219cf

Please sign in to comment.