Skip to content

Add CI workflow

Add CI workflow #1

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: "https://github.com/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:

Check failure on line 32 in .github/workflows/test-vcpkg-ports.yml

View workflow run for this annotation

GitHub Actions / Test vcpkg ports

Invalid workflow file

The workflow is not valid. .github/workflows/test-vcpkg-ports.yml (Line: 32, Col: 12): Unexpected value '' .github/workflows/test-vcpkg-ports.yml (Line: 33, Col: 7): Unexpected value 'script'
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