-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (33 loc) · 988 Bytes
/
dependency-cache.yaml
File metadata and controls
42 lines (33 loc) · 988 Bytes
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
name: Build and cache dependencies
on:
pull_request:
paths:
- vcpkg**.json
- .github/workflows/dependency-cache.yaml
workflow_dispatch:
jobs:
cache:
env:
NUGET_SOURCE_NAME: github
name: ${{ matrix.os }} - ${{ matrix.cmake_preset }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-12 ]
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Authenticate to GitHub NuGet registry
run: >
nuget
sources add
-source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
-storepasswordincleartext
-name "${{ env.NUGET_SOURCE_NAME }}"
-username "${{ github.actor }}"
-password "${{ secrets.GITHUB_TOKEN }}"
- name: Do vcpkg work
env:
VCPKG_BINARY_SOURCES: 'clear;nuget,${{ env.NUGET_SOURCE_NAME }},readwrite'
run: vcpkg install