Skip to content

Commit

Permalink
Add github-binarycache option to use built in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwason committed Jan 18, 2024
1 parent a14a39b commit 67468c2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ runs:
env:
VCPKG_ROOT: "${{ github.workspace }}/vcpkg"
- name: set-binarycache-variable
if: inputs.gitlab-binarycache != 'true'
if: inputs.gitlab-binarycache != 'true' && inputs.gitlab-binarycache != true
uses: actions/github-script@v6
with:
script: |
core.exportVariable('VCPKG_DEFAULT_BINARY_CACHE', "${{ github.workspace }}\vcpkg_cache");
- name: vcpkg-dry-run-win
if: runner.os == 'Windows' && inputs.manifest-dir == '' && inputs.github-binarycache != 'true'
if: runner.os == 'Windows' && inputs.manifest-dir == '' && inputs.github-binarycache != 'true' && inputs.github-binarycache != true
working-directory: ${{ github.workspace }}\vcpkg
shell: powershell
run: |
Expand All @@ -104,7 +104,7 @@ runs:
env:
VCPKG_ROOT: "${{ github.workspace }}/vcpkg"
- name: vcpkg-dry-run-unix
if: runner.os != 'Windows' && inputs.manifest-dir == '' && inputs.github-binarycache != 'true'
if: runner.os != 'Windows' && inputs.manifest-dir == '' && inputs.github-binarycache != 'true' inputs.github-binarycache != true
working-directory: ${{ github.workspace }}/vcpkg
shell: bash
run: |
Expand All @@ -113,7 +113,7 @@ runs:
env:
VCPKG_ROOT: "${{ github.workspace }}/vcpkg"
- name: vcpkg-dry-run-win-manifest
if: runner.os == 'Windows' && inputs.manifest-dir != '' && inputs.github-binarycache != 'true'
if: runner.os == 'Windows' && inputs.manifest-dir != '' && inputs.github-binarycache != 'true' && inputs.github-binarycache != true
working-directory: ${{ github.workspace }}\vcpkg
shell: powershell
run: |
Expand All @@ -122,7 +122,7 @@ runs:
env:
VCPKG_ROOT: "${{ github.workspace }}/vcpkg"
- name: vcpkg-dry-run-unix-manifest
if: runner.os != 'Windows' && inputs.manifest-dir != '' && inputs.github-binarycache != 'true'
if: runner.os != 'Windows' && inputs.manifest-dir != '' && inputs.github-binarycache != 'true' && inputs.github-binarycache != true
working-directory: ${{ github.workspace }}/vcpkg
shell: bash
run: |
Expand All @@ -131,7 +131,7 @@ runs:
env:
VCPKG_ROOT: "${{ github.workspace }}/vcpkg"
- name: cache-vcpkg-archives
if: ${{ inputs.disable_cache != 'true' }} && inputs.github-binarycache != 'true'
if: ${{ inputs.disable_cache != 'true' }} && inputs.github-binarycache != 'true' && inputs.github-binarycache != true
id: cache-vcpkg-archives
uses: pat-s/always-upload-cache@v3
with:
Expand Down

0 comments on commit 67468c2

Please sign in to comment.