diff --git a/.bazelrc b/.bazelrc index 420ab3a812..c642de9eb8 100644 --- a/.bazelrc +++ b/.bazelrc @@ -3,3 +3,7 @@ build --javacopt=-g build --host_javacopt=-g build --experimental_google_legacy_api +build --enable_platform_specific_config +build:linux --sandbox_tmpfs_path=/tmp +test --enable_platform_specific_config +test:linux --sandbox_tmpfs_path=/tmp diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d26c3f9d8e..420c2a35d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: restore-keys: | ${{ runner.os }}-${{ env.cache-version }}-bazel-build- - name: Build maven artifacts - run: bazelisk build --sandbox_tmpfs_path=/tmp //:axt_m2repository + run: bazelisk build //:axt_m2repository shell: bash - name: cp to upload dir run: | @@ -76,7 +76,7 @@ jobs: restore-keys: | ${{ runner.os }}-${{ env.cache-version }}-bazel-test- - name: Run Robolectric tests - run: bazelisk test --sandbox_tmpfs_path=/tmp --test_tag_filters=robolectric --build_tag_filters=robolectric --test_output=all ... + run: bazelisk test --test_tag_filters=robolectric --build_tag_filters=robolectric --test_output=all ... shell: bash - name: 'Clean bazel cache' # Don't cache the bazel/external directory, since it can be > 2GB