[Test] Try to fix the problem on storing ccache results
@@ -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 }}
@@ -58,19 +58,20 @@ jobs:
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
+ - 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: 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: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
