diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7326064b1..df0d38cfb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ env: # Multiple job to tests jobs: - # Test the compilation + # Test the compilation compatibility build: name: ${{ matrix.config.name }} runs-on: ${{ matrix.config.os }} @@ -57,19 +57,20 @@ jobs: run: | string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC) message("::set-output name=timestamp::${current_date}") - - - name: ccache cache files - uses: actions/cache@v1.1.0 - with: - path: .ccache - key: ${{ matrix.config.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }} - restore-keys: | - ${{ matrix.config.name }}-ccache- - name: Create CMake build environment # Some projects don't allow in-source building, so create a separate build directory # We'll use this as our working directory for all subsequent commands run: cmake -E make_directory ${{runner.workspace}}/build + + - name: ccache cache files + uses: actions/cache@v1.1.0 + working-directory: ${{runner.workspace}}/build + with: + path: .ccache + key: ${{ matrix.config.name }}-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }} + restore-keys: | + ${{ matrix.config.name }}-ccache- - name: Configure CMake # Use a bash shell so we can use the same syntax for environment variable