Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fetch-depth option #23

Merged
merged 1 commit into from Jan 18, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -76,9 +76,11 @@ Simple manifest example:
token: ''
# Directory containing vcpkg.json manifest file. Cannot be used with pkgs.
manifest-dir: ''
github-binarycache: ''
# "Use vcpkg built-in GitHub binary caching if "true". If not specified, will use the dry-run based file cache."
# Recommended set to "true"
github-binarycache: ''
#Fetch depth for vcpkg checkout. Defaults to "1"
fetch-depth: '1'

```

Expand Down
6 changes: 5 additions & 1 deletion action.yml
Expand Up @@ -33,6 +33,10 @@ inputs:
description: "Use vcpkg built-in GitHub binary caching. If not specified, will use the dry-run based file cache."
required: false
default: ''
fetch-depth:
description: "Fetch depth for vcpkg checkout"
required: false
default: "1"
outputs:
vcpkg-cmake-config:
description: Configure options for cmake to use vcpkg
Expand Down Expand Up @@ -71,7 +75,7 @@ runs:
path: ${{ github.workspace }}/vcpkg
repository: microsoft/vcpkg
ref: '${{ steps.determine-checkout-revision.outputs.vcpkg-revision }}'
fetch-depth: 1
fetch-depth: ${{ inputs.fetch-depth }}
env:
VCPKG_ROOT: "${{ github.workspace }}/vcpkg"
- name: bootstrap-vcpkg-win
Expand Down