diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2025-05-22 19:35:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-22 19:35:44 +0200 |
| commit | a41028fafcab47ba0d07b975bbb9abde420f4335 (patch) | |
| tree | 0647a4f12ea631febb62eaddef191c9f74295567 /.github | |
| parent | eddc30a47f3daefbe4ef29b5de261a1e18949dd3 (diff) | |
Update following USVFS move to VCPKG. (#2244)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c5857574..17bac3ba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,10 +6,26 @@ on: pull_request: types: [opened, synchronize, reopened] +env: + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" + jobs: build: runs-on: windows-2022 steps: + # https://learn.microsoft.com/en-us/vcpkg/consume/binary-caching-github-actions-cache + - name: Export GitHub Actions cache environment variables + uses: actions/github-script@v7 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); + + - name: "Set environmental variables" + shell: bash + run: | + echo "VCPKG_ROOT=$VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV + - name: Build ModOrganizer 2 uses: ModOrganizer2/build-with-mob-action@master with: |
