diff --git a/.bazelrc b/.bazelrc index b690d15f..74f90dac 100644 --- a/.bazelrc +++ b/.bazelrc @@ -2,7 +2,7 @@ common --enable_bzlmod # Spawn strategy required for some tests -build --spawn_strategy=standalone +build --spawn_strategy=local # Setup Xcode configuration. build --xcode_version_config=//:host_xcodes diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dbacbcf4..ae68ac41 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ concurrency: # when adding a new job / changing the matrix, make sure to update all jobs jobs: integration_tests: - name: Build and test (Bazel ${{ matrix.bazel_version }} / Xcode ${{ matrix.xcode_version }} / Virtual Frameworks ${{ matrix.virtual_frameworks }}) + name: Build and test (Bazel ${{ matrix.bazel_version }} / Xcode ${{ matrix.xcode_version }} / Virtual Frameworks ${{ matrix.virtual_frameworks }}) / Sandbox ${{ matrix.sandbox }} runs-on: macos-14 strategy: fail-fast: false @@ -23,6 +23,7 @@ jobs: bazel_version: [6.5.0, 7.1.0] xcode_version: [15.2] virtual_frameworks: [true, false] + sandbox: [true, false] env: XCODE_VERSION: ${{ matrix.xcode_version }} USE_BAZEL_VERSION: ${{ matrix.bazel_version }} @@ -34,6 +35,10 @@ jobs: name: Add vfs config run: | echo "build --config=vfs" >> user.bazelrc + - if: matrix.sandbox + name: Add vfs config + run: | + echo "build --strategy=SwiftCompile=sandboxed" >> user.bazelrc - name: Build and Test run: | # non-iOS tests