Skip to content

Commit

Permalink
Added ccache (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Nov 7, 2023
1 parent 54d0dd9 commit e8dfc5a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ concurrency:
env:
VCPKG_DIR: C:/vcpkg
VCPKG_DEFAULT_BINARY_CACHE: ${{github.workspace}}\cache
CCACHE_FLD: ccache
CCACHE_DIR: ${{github.workspace}}\ccache

jobs:
build:
Expand Down Expand Up @@ -104,14 +104,14 @@ jobs:
shell: cmd
run: |
vcpkg version >> vcpkg.version
mkdir -p ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
mkdir ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
mkdir ${{ env.CCACHE_DIR }}
- name: Configure build environment (2)
- name: Set number of CPU cores
shell: bash
run: |
echo "CORES=$(nproc --all)" >> $GITHUB_ENV
echo "CCACHE_DIR=${{ env.CCACHE_FLD }}" >> $GITHUB_ENV
mkdir -p ${{ env.CCACHE_FLD }}
- name: vcpkg cache
uses: actions/cache@v3
Expand All @@ -122,7 +122,7 @@ jobs:
- name: ccache cache
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_FLD }}
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ matrix.config.build_type }}-${{ matrix.config.os }}-${{ matrix.config.xcode }}${{ matrix.config.env.CC }}-${{ matrix.setup.scope }}-${{ matrix.config.extra_opts }}-${{ github.ref }}-${{ github.sha }}
restore-keys: |
ccache-${{ matrix.config.build_type }}-${{ matrix.config.os }}-${{ matrix.config.xcode }}${{ matrix.config.env.CC }}-${{ matrix.setup.scope }}-${{ matrix.config.extra_opts }}-${{ github.ref }}-
Expand Down

0 comments on commit e8dfc5a

Please sign in to comment.