-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (34 loc) · 1.41 KB
/
build.yml
File metadata and controls
44 lines (34 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Example that directly invokes `vcpkg install`
on:
workflow_dispatch:
###############################################################################
# Add this section to your workflow file does not already have it to enable
# the job to write the dependency metadata.
###############################################################################
permissions:
contents: write
###############################################################################
# Add these environment variables to your workflow to enable the vcpkg
# dependency graph integration.
###############################################################################
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VCPKG_FEATURE_FLAGS: dependencygraph
jobs:
build:
runs-on: ubuntu-latest
# These steps assume an appropriate version of vcpkg is listed as a
# submodule in your git repo. If it is not, you must update this workflow
# to obtain it.
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Bootstrap vcpkg
run: ${{ github.workspace }}/vcpkg/bootstrap-vcpkg.sh
- name: Directly invoke `vcpkg install`
run: ${{ github.workspace }}/vcpkg/vcpkg install
- name: Build with G++
run: g++ -I${{ github.workspace }}/vcpkg_installed/x64-linux/include -o hola main.cpp
- name: Hola, amigos
run: ${{ github.workspace }}/hola