Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vicroms committed Feb 10, 2024
1 parent 7d5375f commit ca896ff
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 4 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test-vcpkg-ports.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions vcpkg-configuration.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"default-registry": null,
"registries": [
{
"kind": "git",
"baseline": "345ac44ab8d6a16239d3af55df9608bf725e7a48",
"repository": "https://github.com/Microsoft/vcpkg",
"packages": [
"*"
]
}
]
}
8 changes: 4 additions & 4 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": [
"fmt"
]
}
"dependencies": [
"demo"
]
}

0 comments on commit ca896ff

Please sign in to comment.