|
|
|
@ -108,6 +108,14 @@ jobs:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
- name: Setup vcpkg caching
|
|
|
|
|
uses: actions/github-script@v6
|
|
|
|
|
with:
|
|
|
|
|
script: |
|
|
|
|
|
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
|
|
|
|
|
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
|
|
|
|
|
core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite')
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
run: |
|
|
|
|
|
echo "::group::Update apt"
|
|
|
|
@ -192,18 +200,13 @@ jobs:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
- name: Prepare cache key
|
|
|
|
|
id: key
|
|
|
|
|
run: |
|
|
|
|
|
echo "image=$ImageOS-$ImageVersion" >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
|
|
- name: Enable vcpkg cache
|
|
|
|
|
uses: actions/cache@v3
|
|
|
|
|
- name: Setup vcpkg caching
|
|
|
|
|
uses: actions/github-script@v6
|
|
|
|
|
with:
|
|
|
|
|
path: /usr/local/share/vcpkg/installed
|
|
|
|
|
key: ${{ steps.key.outputs.image }}-vcpkg-${{ matrix.arch }}-1 # Increase the number whenever dependencies are modified
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ steps.key.outputs.image }}-vcpkg-${{ matrix.arch }}
|
|
|
|
|
script: |
|
|
|
|
|
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
|
|
|
|
|
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
|
|
|
|
|
core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite')
|
|
|
|
|
|
|
|
|
|
- name: Prepare vcpkg
|
|
|
|
|
run: |
|
|
|
|
@ -272,22 +275,13 @@ jobs:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
- name: Prepare cache key
|
|
|
|
|
id: key
|
|
|
|
|
shell: powershell
|
|
|
|
|
run: |
|
|
|
|
|
# Work around caching failure with GNU tar
|
|
|
|
|
New-Item -Type Junction -Path vcpkg -Target c:\vcpkg
|
|
|
|
|
|
|
|
|
|
Write-Output "image=$env:ImageOS-$env:ImageVersion" >> $env:GITHUB_OUTPUT
|
|
|
|
|
|
|
|
|
|
- name: Enable vcpkg cache
|
|
|
|
|
uses: actions/cache@v3
|
|
|
|
|
- name: Setup vcpkg caching
|
|
|
|
|
uses: actions/github-script@v6
|
|
|
|
|
with:
|
|
|
|
|
path: vcpkg/installed
|
|
|
|
|
key: ${{ steps.key.outputs.image }}-vcpkg-${{ matrix.arch }}-1 # Increase the number whenever dependencies are modified
|
|
|
|
|
restore-keys: |
|
|
|
|
|
${{ steps.key.outputs.image }}-vcpkg-${{ matrix.arch }}
|
|
|
|
|
script: |
|
|
|
|
|
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
|
|
|
|
|
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
|
|
|
|
|
core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite')
|
|
|
|
|
|
|
|
|
|
- name: Prepare vcpkg
|
|
|
|
|
shell: bash
|
|
|
|
|