add '[vcpkg json files]' #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test vcpkg ports | |
on: | |
push: | |
branches: ["production","preview","development"] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Acquire vcpkg | |
uses: actions/checkout@v4 | |
with: | |
repository: "Microsoft/vcpkg" | |
path: vcpkg | |
- name: Bootstrap vcpkg | |
run: "${{ github.workspace }}/vcpkg/bootstrap-vcpkg.sh" | |
shell: bash | |
- name: Enable GitHub Actions Cache backend | |
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: Build ports | |
run: ${{ github.workspace }}/vcpkg/vcpkg install | |
env: | |
X_VCPKG_ASSET_SOURCES: "clear;x-azurl,https://your.domain.com/container,${{ secrets.SAS }},readwrite" | |
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | |
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | |
shell: bash |