Bazel: move `--build_tests_only` from swift action to `.bazelrc`

This commit is contained in:
Paolo Tranquilli 2024-05-31 12:35:52 +02:00
Родитель 3f19974bb6
Коммит bfc37fddff
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -10,6 +10,9 @@ common --override_module=semmle_code=%workspace%/misc/bazel/semmle_code_stub
build --repo_env=CC=clang --repo_env=CXX=clang++ build --repo_env=CC=clang --repo_env=CXX=clang++
# we use transitions that break builds of `...`, so for `test` to work with that we need the following
test --build_tests_only
# this requires developer mode, but is required to have pack installer functioning # this requires developer mode, but is required to have pack installer functioning
startup --windows_enable_symlinks startup --windows_enable_symlinks
common --enable_runfiles common --enable_runfiles

Просмотреть файл

@ -58,7 +58,7 @@ runs:
if: ${{ github.event_name == 'pull_request' }} if: ${{ github.event_name == 'pull_request' }}
shell: bash shell: bash
run: | run: |
bazel test --build_tests_only //swift/... bazel test //swift/...
- name: Evict bazel cache - name: Evict bazel cache
if: ${{ github.event_name != 'pull_request' }} if: ${{ github.event_name != 'pull_request' }}
shell: bash shell: bash