Skip to content

Commit

Permalink
ci: fix ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix committed May 16, 2024
1 parent bd63971 commit 49cf46e
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,21 @@ jobs:
compiler:
- msvc
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
path: main

- name: Setup cmake
uses: lukka/get-cmake@latest

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

- name: Cache vcpkg
uses: actions/cache@v2
id: vcpkg-cache
env:
cache-name: vcpkg-cache
- name: Setup vcpkg
uses: lukka/[email protected]
with:
path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}/*
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('main/**/vcpkg.json', 'vcpkg-version.txt') }}
doNotCache: true

- name: Build
uses: lukka/[email protected]
Expand Down

0 comments on commit 49cf46e

Please sign in to comment.