Skip to content

Commit

Permalink
Blindly try artifactory endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed Sep 12, 2024
1 parent 72b5502 commit 23a2968
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ build:build_cpp --test_tag_filters=+allwpilib-build-cpp --build_tag_filters=+all
build:no_example --test_tag_filters=-wpi-example --build_tag_filters=-wpi-example
test:no_example --test_tag_filters=-wpi-example --build_tag_filters=-wpi-example


build:remote --bes_results_url=https://app.buildbuddy.io/invocation/
build:remote --bes_backend=grpcs://cloud.buildbuddy.io
build:remote --remote_cache=grpcs://cloud.buildbuddy.io
build:remote --remote_timeout=3600

# This config should be used locally. It downloads more than the CI version
build:remote_user --config=remote
build:remote_user --remote_download_toplevel
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
distribution: 'zulu'
java-version: 17
architecture: x64

- name: Set artifactory cache key
run: echo "build:ci --remote_header=https://${{ secrets.ARTIFACTORY_USERNAME }}:${{ secrets.ARTIFACTORY_PASSWORD }}@frcmaven.wpi.edu/artifactory/wpilib-generic-cache-bazel-local" > bazel_auth.rc

- name: Build Release
run: bazel --output_user_root=C:\\bazelroot ${{ matrix.action }} -k ... --config=ci -c opt ${{ matrix.config }} --verbose_failures
Expand All @@ -48,6 +51,9 @@ jobs:
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }

- name: Set artifactory cache key
run: echo "build:ci --remote_header=https://${{ secrets.ARTIFACTORY_USERNAME }}:${{ secrets.ARTIFACTORY_PASSWORD }}@frcmaven.wpi.edu/artifactory/wpilib-generic-cache-bazel-local" > bazel_auth.rc

- name: Build Release
run: bazel ${{ matrix.action }} -k ... --config=ci -c opt ${{ matrix.config }} --nojava_header_compilation --verbose_failures
Expand All @@ -70,6 +76,9 @@ jobs:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: bazelbuild/setup-bazelisk@v3

- name: Set artifactory cache key
run: echo "build:ci --remote_header=https://${{ secrets.ARTIFACTORY_USERNAME }}:${{ secrets.ARTIFACTORY_PASSWORD }}@wpilib.jfrog.io/wpilib-generic-cache-bazel-local" > bazel_auth.rc

- name: Build and Test Release
run: bazel ${{ matrix.action }} ... --config=ci -c opt ${{ matrix.config }} -k --verbose_failures
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ imgui.ini
/bazel-*
user.bazelrc
coverage_report/
bazel_auth.rc

# ctest
/Testing/
Expand Down

0 comments on commit 23a2968

Please sign in to comment.