From 2fc67710462037522bd22a3d1730d1da9a569420 Mon Sep 17 00:00:00 2001 From: krcroft Date: Wed, 25 Mar 2020 08:08:05 -0700 Subject: [PATCH] Use ISO date format for ccache keys --- .github/workflows/analysis.yml | 8 ++++---- .github/workflows/linux.yml | 8 ++++---- .github/workflows/macos.yml | 8 ++++---- .github/workflows/windows.yml | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 43c2dde1..d872edaa 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -53,8 +53,8 @@ jobs: run: | mkdir -p "${CCACHE_DIR}" echo "::set-output name=dir::$CCACHE_DIR" - echo "::set-output name=today::$(date +%Y%M%d)" - echo "::set-output name=yesterday::$(date --date=yesterday +%Y%M%d)" + echo "::set-output name=today::$(date -I)" + echo "::set-output name=yesterday::$(date --date=yesterday -I)" - uses: actions/cache@v1 id: cache-ccache with: @@ -192,8 +192,8 @@ jobs: run: | mkdir -p "${CCACHE_DIR}" echo "::set-output name=dir::$CCACHE_DIR" - echo "::set-output name=today::$(date +%Y%M%d)" - echo "::set-output name=yesterday::$(date --date=yesterday +%Y%M%d)" + echo "::set-output name=today::$(date -I)" + echo "::set-output name=yesterday::$(date --date=yesterday -I)" - uses: actions/cache@v1 id: cache-ccache with: diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index f1be4dac..415ed0fc 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -44,8 +44,8 @@ jobs: run: | mkdir -p "${CCACHE_DIR}" echo "::set-output name=dir::$CCACHE_DIR" - echo "::set-output name=today::$(date +%Y%M%d)" - echo "::set-output name=yesterday::$(date --date=yesterday +%Y%M%d)" + echo "::set-output name=today::$(date -I)" + echo "::set-output name=yesterday::$(date --date=yesterday -I)" - uses: actions/cache@v1 id: cache-ccache with: @@ -77,8 +77,8 @@ jobs: run: | mkdir -p "${CCACHE_DIR}" echo "::set-output name=dir::$CCACHE_DIR" - echo "::set-output name=today::$(date +%Y%M%d)" - echo "::set-output name=yesterday::$(date --date=yesterday +%Y%M%d)" + echo "::set-output name=today::$(date -I)" + echo "::set-output name=yesterday::$(date --date=yesterday -I)" - uses: actions/cache@v1 id: cache-ccache with: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index b1325d5d..31104da0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -33,8 +33,8 @@ jobs: run: | mkdir -p "${CCACHE_DIR}" echo "::set-output name=dir::$CCACHE_DIR" - echo "::set-output name=today::$(date +%Y%M%d)" - echo "::set-output name=yesterday::$(date --date=yesterday +%Y%M%d)" + echo "::set-output name=today::$(date -I)" + echo "::set-output name=yesterday::$(date --date=yesterday -I)" - uses: actions/cache@v1 id: cache-ccache with: @@ -69,8 +69,8 @@ jobs: run: | mkdir -p "${CCACHE_DIR}" echo "::set-output name=dir::$CCACHE_DIR" - echo "::set-output name=today::$(date +%Y%M%d)" - echo "::set-output name=yesterday::$(date --date=yesterday +%Y%M%d)" + echo "::set-output name=today::$(date -I)" + echo "::set-output name=yesterday::$(date --date=yesterday -I)" - uses: actions/cache@v1 id: cache-ccache with: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 816dcd96..18a6647d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -65,8 +65,8 @@ jobs: run: | mkdir -p "${CCACHE_DIR}" echo "::set-output name=dir::$CCACHE_DIR" - echo "::set-output name=today::$(date +%Y%M%d)" - echo "::set-output name=yesterday::$(date --date=yesterday +%Y%M%d)" + echo "::set-output name=today::$(date -I)" + echo "::set-output name=yesterday::$(date --date=yesterday -I)" - uses: actions/cache@v1 id: cache-ccache with: