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 d22f913 commit a14a39b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ inputs:
github-binarycache:
description: "GitHub binary cache to use. If not specified, will use the dry-run based file cache."
required: false
default: 'false'
default: ''
outputs:
vcpkg-cmake-config:
description: Configure options for cmake to use vcpkg
Expand Down Expand Up @@ -89,13 +89,13 @@ runs:
env:
VCPKG_ROOT: "${{ github.workspace }}/vcpkg"
- name: set-binarycache-variable
if: inputs.gitlab-binarycache == 'false'
if: 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 == 'false'
if: runner.os == 'Windows' && inputs.manifest-dir == '' && 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 == 'false'
if: runner.os != 'Windows' && inputs.manifest-dir == '' && 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 == 'false'
if: runner.os == 'Windows' && inputs.manifest-dir != '' && 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 == 'false'
if: runner.os != 'Windows' && inputs.manifest-dir != '' && 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 == 'false'
if: ${{ inputs.disable_cache != 'true' }} && inputs.github-binarycache != 'true'
id: cache-vcpkg-archives
uses: pat-s/always-upload-cache@v3
with:
Expand Down

0 comments on commit a14a39b

Please sign in to comment.