Skip to content

Commit cc26d67

Browse files
committed
Test cache thingy
1 parent cca203a commit cc26d67

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Install some deps and cache them
2+
3+
# Controls when the workflow will run
4+
on:
5+
# Triggers the workflow on merges to master, release branches,
6+
# all PRs, and release tags
7+
push:
8+
branches:
9+
- main
10+
- '[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+'
11+
tags:
12+
- '[0-9]+\.[0-9]+\.[0-9]+'
13+
- '[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+'
14+
15+
# On anything pull request related
16+
pull_request:
17+
18+
# Allows you to run this workflow manually from the Actions tab
19+
workflow_dispatch:
20+
21+
jobs:
22+
test_cache_updating:
23+
name: Create test
24+
runs-on: windows-latest
25+
defaults:
26+
run:
27+
shell: powershell
28+
steps:
29+
- name: Checkout Git
30+
id: checkout_git
31+
uses: actions/checkout@v3
32+
with:
33+
path: actions-cache-test
34+
35+
- name: Setup our dev environment
36+
uses: ilammy/msvc-dev-cmd@v1
37+
38+
- name: Setup ninja cmake generator
39+
uses: seanmiddleditch/gha-setup-ninja@master
40+
41+
- name: Download and build our dependencies using vcpkg
42+
uses: Lord-Kamina/vcpkg-action@update_cache
43+
with:
44+
pkgs: "\"liblzma[core]\" \"libpng[core]\" \"pthread[core]\" \"pthreads[core]\" \"quirc[core]\" \"sdl2[core]\" \"tiff[core,jpeg,lzma,zip]\" \"zlib[core]\""
45+
triplet: x64-windows-release
46+
extra-args: "--clean-after-build --feature-flags=binarycaching,-compilertracking"
47+
debug: "true"
48+
cache-key: win64-vcpkg
49+
api-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)