Skip to content

Commit

Permalink
choco install ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
cgytrus committed Aug 2, 2023
1 parent c9ebb89 commit 58b2633
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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"
Expand All @@ -88,7 +94,6 @@ jobs:
${{ matrix.config.extra_flags }}
- name: Build
shell: bash
run: |
cd build
cmake --build . --config RelWithDebInfo --parallel
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 58b2633

Please sign in to comment.