update ccache
fix ccache implementation
This commit is contained in:
parent
fc2ebf72a3
commit
a975e1dac2
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -12,14 +12,19 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
- name: Prepare ccache timestamp
|
||||||
|
id: ccache_cache_timestamp
|
||||||
|
shell: cmake -P {0}
|
||||||
|
run: |
|
||||||
|
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
|
||||||
|
message("::set-output name=timestamp::${current_date}")
|
||||||
- name: cache
|
- name: cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: $HOME/.ccache
|
path: ~/.ccache
|
||||||
key: build-ccache
|
key: build-ccache-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
build-ccache
|
build-ccache-
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "$HOME/.ccache"
|
mkdir -p "$HOME/.ccache"
|
||||||
|
Loading…
Reference in New Issue
Block a user