Log a message when pebble_cache creates a new default partition #6958
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# This step would list out all files under $vs2022Path for debugging purposes. | |
# - name: "Find CL" | |
# shell: pwsh # Use PowerShell for better cross-platform compatibility | |
# run: | | |
# $vs2022Path = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" | |
# if (Test-Path $vs2022Path) { | |
# Write-Host "Listing files in: $vs2022Path" | |
# Get-ChildItem -Path $vs2022Path -Recurse -File -ErrorAction SilentlyContinue | ForEach-Object { | |
# Write-Host $_.FullName | |
# } | Out-File -FilePath vs2022_files.txt -Encoding utf8 | |
# Write-Host "File list saved to vs2022_files.txt" | |
# } else { | |
# Write-Host "Error: Directory not found: $vs2022Path" | |
# } | |
- 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 |