From 58b2633225aa75b235639536619d45cdd2275478 Mon Sep 17 00:00:00 2001 From: ConfiG Date: Wed, 2 Aug 2023 23:08:11 +0300 Subject: [PATCH] choco install ccache --- .github/workflows/build.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f43d3a6d..af45d86dc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,15 +49,22 @@ jobs: runs-on: ${{ matrix.config.os }} steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 with: submodules: recursive - - uses: hendrikmuhs/ccache-action@v1 + - name: Install ccache + run: choco install ccache + if: matrix.config.id == 'win' + + - name: Setup ccache + uses: hendrikmuhs/ccache-action@v1 with: key: ${{ matrix.config.os }} - - uses: ilammy/msvc-dev-cmd@v1.12.1 + - name: Setup MSVC + uses: ilammy/msvc-dev-cmd@v1.12.1 with: arch: amd64_x86 if: matrix.config.id == 'win' @@ -79,7 +86,6 @@ jobs: echo "${{ github.workspace }}/cli" >> $GITHUB_PATH - name: Configure CMake - shell: bash run: > cmake -B build -DCLI_PATH="${{ github.workspace }}/cli" @@ -88,7 +94,6 @@ jobs: ${{ matrix.config.extra_flags }} - name: Build - shell: bash run: | cd build cmake --build . --config RelWithDebInfo --parallel @@ -116,7 +121,8 @@ jobs: needs: build if: github.ref == 'refs/heads/main' steps: - - uses: actions/checkout@v3 + - name: Checkout + uses: actions/checkout@v3 - name: Declare Version Variables id: ref