Disable caching

This commit is contained in:
Andrea Cavalli 2020-12-30 18:35:31 +01:00
parent ac5c85a571
commit 4e89ee9503
2 changed files with 32 additions and 30 deletions

View File

@ -38,21 +38,22 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Setup ccache variables
shell: bash
run: |
ARCH=${{ matrix.arch }}
SAFE_ARCH=$(echo $ARCH | sed 's/\//\-/g')
echo "CCACHE_SAFE_ARCH=$SAFE_ARCH" >> $GITHUB_ENV
- name: Cache ccache
if: runner.os == 'Linux'
id: cache-ccache
uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ runner.os }}-${{ env.CCACHE_SAFE_ARCH }}-ccache-all
restore-keys: |
${{ runner.os }}-${{ env.CCACHE_SAFE_ARCH }}-ccache-
# Caching causes strange behaviours. Disabled.
# - name: Setup ccache variables
# shell: bash
# run: |
# ARCH=${{ matrix.arch }}
# SAFE_ARCH=$(echo $ARCH | sed 's/\//\-/g')
# echo "CCACHE_SAFE_ARCH=$SAFE_ARCH" >> $GITHUB_ENV
# - name: Cache ccache
# if: runner.os == 'Linux'
# id: cache-ccache
# uses: actions/cache@v2
# with:
# path: ~/.ccache
# key: ${{ runner.os }}-${{ env.CCACHE_SAFE_ARCH }}-ccache-all
# restore-keys: |
# ${{ runner.os }}-${{ env.CCACHE_SAFE_ARCH }}-ccache-
- name: Setup Java (Snapshot)
if: github.ref != 'refs/heads/master'
uses: actions/setup-java@v1

View File

@ -24,21 +24,22 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Setup ccache variables
shell: bash
run: |
ARCH=${{ matrix.arch }}
SAFE_ARCH=$(echo $ARCH | sed 's/\//\-/g')
echo "CCACHE_SAFE_ARCH=$SAFE_ARCH" >> $GITHUB_ENV
- name: Cache ccache
if: runner.os == 'Linux'
id: cache-ccache
uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ runner.os }}-${{ env.CCACHE_SAFE_ARCH }}-ccache-all
restore-keys: |
${{ runner.os }}-${{ env.CCACHE_SAFE_ARCH }}-ccache-
# Caching causes strange behaviours. Disabled.
# - name: Setup ccache variables
# shell: bash
# run: |
# ARCH=${{ matrix.arch }}
# SAFE_ARCH=$(echo $ARCH | sed 's/\//\-/g')
# echo "CCACHE_SAFE_ARCH=$SAFE_ARCH" >> $GITHUB_ENV
# - name: Cache ccache
# if: runner.os == 'Linux'
# id: cache-ccache
# uses: actions/cache@v2
# with:
# path: ~/.ccache
# key: ${{ runner.os }}-${{ env.CCACHE_SAFE_ARCH }}-ccache-all
# restore-keys: |
# ${{ runner.os }}-${{ env.CCACHE_SAFE_ARCH }}-ccache-
- name: Setup Java (Snapshot)
if: github.ref != 'refs/heads/master'
uses: actions/setup-java@v1