Skip to content

Commit 0e6d7a8

Browse files
committed
ci: fixes
1 parent bd63971 commit 0e6d7a8

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/main_ci.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,21 @@ jobs:
2222
compiler:
2323
- msvc
2424
steps:
25-
- uses: actions/checkout@v2
25+
- name: Checkout
26+
uses: actions/checkout@v2
2627
with:
2728
path: main
29+
30+
- name: Setup cmake
31+
uses: lukka/get-cmake@latest
2832

29-
- name: Setup vcpkg
30-
run: |
31-
mkdir -p ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
32-
cd $env:VCPKG_INSTALLATION_ROOT
33-
./bootstrap-vcpkg.bat
34-
./vcpkg --version > ${{ github.workspace }}/vcpkg-version.txt
33+
- name: Setup msvc
34+
uses: ilammy/[email protected]
3535

36-
- name: Cache vcpkg
37-
uses: actions/cache@v2
38-
id: vcpkg-cache
39-
env:
40-
cache-name: vcpkg-cache
36+
- name: Setup vcpkg
37+
uses: friendlyanon/setup-vcpkg@v1
4138
with:
42-
path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}/*
43-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('main/**/vcpkg.json', 'vcpkg-version.txt') }}
39+
committish: 943c5ef1c8f6b5e6ced092b242c8299caae2ff01
4440

4541
- name: Build
4642
uses: lukka/[email protected]

0 commit comments

Comments
 (0)