Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actions/setup-bazel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ runs:
contents="$(cygpath -m "$contents")"
nested="$(cygpath -m "$nested")"
fi
case "$RUNNER_OS" in
macOS) heap=50 memory=.5 ;;
*) heap=50 memory=.25 ;;
esac
{
echo "common --repository_cache=$cache"
echo "common --repo_contents_cache=$contents"
echo "test --sandbox_writable_path=$nested"
echo "startup --host_jvm_args=-XX:MaxRAMPercentage=$heap"
echo "common --local_resources=memory=HOST_RAM*$memory"
} >> user.bazelrc
echo "DX_NESTED_SHARED=$nested" >> "$GITHUB_ENV"
- uses: bazel-contrib/setup-bazel@104e3eea9447cdaa4b00d0fb46191a3985d26ab3 # v0.19.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
command: check
baseline: check-${{ matrix.platform }}
- name: Check generated files across the repo
if: ${{ !cancelled() && matrix.platform == 'linux_x86_64' }}
if: ${{ !cancelled() && matrix.platform == 'linux_x86_64' && github.event_name != 'pull_request' }}
run: |
# shellcheck disable=SC2086
set -- --lockfile_mode=error $BAZEL_CONFIG $BB_ARGS
Expand Down
4 changes: 3 additions & 1 deletion tools/ci/ci_check_jobs_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ fn check_verifies_every_generated_file_on_one_platform() {
.expect("whole-repo generate step");
assert_eq!(
step["if"].as_str(),
Some("${{ !cancelled() && matrix.platform == 'linux_x86_64' }}")
Some(
"${{ !cancelled() && matrix.platform == 'linux_x86_64' && github.event_name != 'pull_request' }}"
)
);
}

Expand Down
Loading