Skip to content

Commit

Permalink
Add CI sandbox mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gyfelton committed Aug 19, 2024
1 parent 2a88b70 commit b9bcd36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ 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
matrix:
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 }}
Expand All @@ -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
Expand Down

0 comments on commit b9bcd36

Please sign in to comment.