Skip to content

Commit

Permalink
[cli] Allow long paths in windows CLI build
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Jan 29, 2025
1 parent 2c96107 commit f579b7f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cli-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.source_git_ref_override }}
# Ensure that long paths work
- name: Ensure long paths work
run: git config core.longpaths true
shell: bash
- name: Build CLI
run: scripts\cli\build_cli_release.ps1
- name: Upload Binary
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/windows-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ name: "Windows CLI Build"
on:
workflow_dispatch:
pull_request:
types: [labeled, opened, synchronize, reopened, auto_merge_enabled]
schedule:
types: [ labeled, opened, synchronize, reopened, auto_merge_enabled ]
schedule:
# Run twice a day at 12PM PT and 8PM PT Monday through Friday
- cron: "0 19,3 * * 1-5"
# Run once a day at 12PM PT on Saturday and Sunday
Expand All @@ -32,6 +32,11 @@ jobs:
- name: Set up WinGet
run: Set-Variable ProgressPreference SilentlyContinue ; PowerShell -ExecutionPolicy Bypass -File scripts/windows_dev_setup.ps1

# Ensure that long paths work
- name: Ensure long paths work
run: git config core.longpaths true
shell: bash

# This action will cache ~/.cargo and ./target (or the equivalent on Windows in
# this case). See more here:
# https://github.com/Swatinem/rust-cache#cache-details
Expand Down

0 comments on commit f579b7f

Please sign in to comment.