Skip to content

Commit f181092

Browse files
committed
github workflow: fix cache timestamp
1 parent 793acfd commit f181092

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v2
1515
- run: sudo apt-get update && sudo apt-get install bison ccache ninja-build libsdl2-dev libsdl2-gfx-dev libsdl2-mixer-dev libsdl2-net-dev qtbase5-dev
16+
- name: Prepare ccache timestamp
17+
id: ccache_cache_timestamp
18+
shell: cmake -P {0}
19+
run: |
20+
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
21+
message("::set-output name=timestamp::${current_date}")
1622
- uses: actions/cache@v1.1.0
1723
with:
1824
path: .ccache
@@ -56,6 +62,12 @@ jobs:
5662
steps:
5763
- uses: actions/checkout@v2
5864
- run: brew install ccache ninja qt
65+
- name: Prepare ccache timestamp
66+
id: ccache_cache_timestamp
67+
shell: cmake -P {0}
68+
run: |
69+
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
70+
message("::set-output name=timestamp::${current_date}")
5971
- uses: actions/cache@v1.1.0
6072
with:
6173
path: .ccache

0 commit comments

Comments
 (0)