1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-20 02:42:42 +01:00

Codechange: [Actions] Setup vcpkg via a composite action

This commit is contained in:
glx22
2025-07-09 17:21:16 +02:00
committed by Loïc Guilloux
parent c9fc7c0caa
commit 0f2d1dc39c
8 changed files with 48 additions and 84 deletions

View File

@@ -26,18 +26,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup vcpkg caching
uses: actions/github-script@v7
- name: Setup vcpkg
uses: ./.github/actions/setup-vcpkg
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 vcpkg
run: |
git clone https://github.com/microsoft/vcpkg ${{ runner.temp }}/vcpkg
${{ runner.temp }}/vcpkg/bootstrap-vcpkg.sh -disableMetrics
vcpkg-location: ${{ runner.temp }}/vcpkg
- name: Install dependencies
run: |