Skip to content

[raft] delete data before apply snapshot #5884

[raft] delete data before apply snapshot

[raft] delete data before apply snapshot #5884

name: "Build Windows executor"
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-2022
if: "!contains(github.event.head_commit.message, 'ci skip')"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Because "startup" options could not be assigned to different configs in .bazelrc, we are adding them directly here.
# These options follow the best practices in https://bazel.build/configure/windows. Specifically:
# - Set output_user_root to the shortest path possible to avoid Windows path length limitations.
# Without this, actions with longer path input files would fail randomly with irrelevant errors.
#
# - Enable windows symlink helps reduce disk usage.
# Without this, files will be fully copied instead.
run: |
$authArgs = @()
$apiKey = '${{ secrets.BUILDBUDDY_ORG_API_KEY }}'
if ($apiKey) {
$authArgs = @("--remote_header=x-buildbuddy-api-key=$apiKey")
}
bazelisk --output_user_root=D:/0 --windows_enable_symlinks build --config=untrusted-ci-windows @authArgs //enterprise/server/cmd/executor:executor