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

View File

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