diff --git a/.github/workflows/test-vcpkg-ports.yml b/.github/workflows/test-vcpkg-ports.yml new file mode 100644 index 0000000..c425d34 --- /dev/null +++ b/.github/workflows/test-vcpkg-ports.yml @@ -0,0 +1,39 @@ +name: Test vcpkg ports + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +env: + VCPKG_ASSET_SOURCES: "clear;x-azurl,https://vcpkgdemoassets.blob.core.windows.net/vcpkg-demo-assets,{{ secrets.ADO_SAS }},readwrite" + VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" + VCPKG_OVERLAY_PORTS: ${{ github.workspace }}/ports + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Acquire vcpkg + uses: actions/checkout@v4 + with: + repository: "Microsoft/vcpkg" + + - name: Bootstrap vcpkg + run: ${{ github.worksapce }}/vcpkg/bootstrap-vcpkg.sh + shell: bash + + - name: Enable GitHub Actions Cache backend + 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 || ''); + + - name: Build ports + run: ${{ github.workspace }}/vcpkg/vcpkg install + shell: bash diff --git a/vcpkg-configuration.json b/vcpkg-configuration.json new file mode 100644 index 0000000..004b25a --- /dev/null +++ b/vcpkg-configuration.json @@ -0,0 +1,13 @@ +{ + "default-registry": null, + "registries": [ + { + "kind": "git", + "baseline": "345ac44ab8d6a16239d3af55df9608bf725e7a48", + "repository": "https://github.com/Microsoft/vcpkg", + "packages": [ + "*" + ] + } + ] +} diff --git a/vcpkg.json b/vcpkg.json index d545373..b9e461d 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -1,5 +1,5 @@ { - "dependencies": [ - "fmt" - ] -} \ No newline at end of file + "dependencies": [ + "demo" + ] +}