diff --git a/.github/workflows/test-registry-ports.yml b/.github/workflows/test-registry-ports.yml new file mode 100644 index 00000000..5e89adbc --- /dev/null +++ b/.github/workflows/test-registry-ports.yml @@ -0,0 +1,39 @@ +name: Test vcpkg ports + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +env: + 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" + 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 + shell: bash diff --git a/.gitignore b/.gitignore index 875eed39..0f5bab3b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .vscode build/ +vcpkg_installed/ diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 00000000..88870dbb --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,8 @@ +{ + "$comment": "The dependency list should be populated with every port in the registry", + "dependencies": [ + "beicode", + "beison" + ], + "builtin-baseline": "821100d967e1737d96414a308e3f7cbe0d1abf18" +}