Skip to content

Commit 4f33b33

Browse files
Add a vsversion argument
1 parent 86a2a6e commit 4f33b33

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

ccache/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ inputs:
2222
support-modules:
2323
required: false
2424
description: Whether or not we need to support modules. This can result in extra cache misses.
25+
vsversion:
26+
required: false
27+
default: '2019'
28+
description: The version of Visual Studio to use (Windows only)
29+
type: string
2530

2631
runs:
2732
using: 'composite'
@@ -48,6 +53,8 @@ runs:
4853
- name: Setup ccache on Windows
4954
if: ${{ runner.os == 'Windows' }}
5055
uses: ./../../_actions/current/internal/ccache-setup-windows
56+
with:
57+
vsversion: ${{ inputs.vsversion }}
5158
- name: Setup ccache on Mac
5259
if: ${{ runner.os == 'macOS' }}
5360
shell: bash

internal/ccache-setup-windows/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ inputs:
2020
default: '4.7.4'
2121
description: A pinned version of ccache
2222
type: string
23+
vsversion:
24+
required: false
25+
default: '2019'
26+
description: The version of Visual Studio to use
27+
type: string
2328

2429
runs:
2530
using: 'composite'
@@ -28,7 +33,7 @@ runs:
2833
uses: ilammy/msvc-dev-cmd@cec98b9d092141f74527d0afa6feb2af698cfe89 # v1.12.1
2934
with:
3035
arch: x64
31-
vsversion: '2019'
36+
vsversion: ${{ inputs.vsversion }}
3237

3338
- name: Setup ccache path
3439
shell: bash

0 commit comments

Comments
 (0)