Skip to content

Commit

Permalink
Cleanup in prep of transfering to wpilibsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed Sep 22, 2024
1 parent 27ca26b commit 1880305
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 190 deletions.
13 changes: 2 additions & 11 deletions .github/actions/setup-build-buddy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,18 @@ description: 'Sets up the build buddy cache to be readonly / writing based on th
inputs:
token:
description: 'Build Buddy API token'
readonly_token:
description: 'Build Buddy API readonly token'
required: true

runs:
using: "composite"
steps:
- name: Setup without key
env:
API_KEY: ${{ inputs.token }}
READONLY_KEY: ${{ inputs.readonly_token }}
if: ${{ env.API_KEY == '' }}
shell: bash
run: |
echo "No API key secret detected, will setup readonly cache"
echo "build:ci --noremote_upload_local_results" > .buildbuddy-auth.rc
echo "build:ci --remote_header=x-buildbuddy-api-key=${{ env.READONLY_KEY }}" >> .buildbuddy-auth.rc
echo "build:ci --noremote_upload_local_results" > tests/.buildbuddy-auth.rc
echo "build:ci --remote_header=x-buildbuddy-api-key=${{ env.READONLY_KEY }}" >> tests/.buildbuddy-auth.rc
echo "build:ci --config=build_buddy_readonly" > bazel_auth.rc
- name: Set with key
env:
Expand All @@ -32,5 +24,4 @@ runs:
shell: bash
run: |
echo "API Key detected!"
echo "build:ci --remote_header=x-buildbuddy-api-key=${{ env.API_KEY }}" > .buildbuddy-auth.rc
echo "build:ci --remote_header=x-buildbuddy-api-key=${{ env.API_KEY }}" > tests/.buildbuddy-auth.rc
echo "build:build_buddy --remote_header=x-buildbuddy-api-key=${{ env.API_KEY }}" > bazel_auth.rc
94 changes: 0 additions & 94 deletions .github/workflows/auto_update.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
uses: ./.github/actions/setup-build-buddy
with:
token: ${{ secrets.BUILDBUDDY_API_KEY }}
readonly_token: ${{ secrets.BUILDBUDDY_READONLY }}
- run: bazel ${{ matrix.bazel_options }} build -k ${{ matrix.config }} --config=ci @rules_bzlmodrio_toolchains//...
working-directory: tests
- name: Build and allow failure # TODO Sometimes symlinks don't get created correctly the first time around
Expand Down Expand Up @@ -78,7 +77,6 @@ jobs:
uses: ./.github/actions/setup-build-buddy
with:
token: ${{ secrets.BUILDBUDDY_API_KEY }}
readonly_token: ${{ secrets.BUILDBUDDY_READONLY }}
- name: Build and allow failure # TODO Sometimes symlinks don't get created correctly the first time around
run: bazel ${{ matrix.bazel_options }} ${{ matrix.command }} //... -k ${{ matrix.config }} --verbose_failures --config=ci || true
working-directory: tests
Expand Down Expand Up @@ -115,7 +113,6 @@ jobs:
uses: ./.github/actions/setup-build-buddy
with:
token: ${{ secrets.BUILDBUDDY_API_KEY }}
readonly_token: ${{ secrets.BUILDBUDDY_READONLY }}
- name: Build and allow failure # TODO Sometimes symlinks don't get created correctly the first time around
run: bazel ${{ matrix.bazel_options }} ${{ matrix.command }} //... -k ${{ matrix.config }} --verbose_failures --config=ci || true
working-directory: tests
Expand Down
82 changes: 0 additions & 82 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit 1880305

Please sign in to comment.