Update build.yaml
This commit is contained in:
parent
684843936a
commit
643c8de174
9
.github/workflows/build.yaml
vendored
9
.github/workflows/build.yaml
vendored
@ -29,15 +29,20 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
|
- name: Setup ccache variables
|
||||||
|
run: |
|
||||||
|
ARCH=${{ matrix.arch }}
|
||||||
|
SAFE_ARCH=$(echo $ARCH | sed 's/\//\-/g')
|
||||||
|
echo "CCACHE_SAFE_ARCH=$SAFE_ARCH" >> $GITHUB_ENV
|
||||||
- name: Cache ccache
|
- name: Cache ccache
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
id: cache-ccache
|
id: cache-ccache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.ccache
|
path: ~/.ccache
|
||||||
key: ${{ runner.os }}-${{ env.SAFE_ARCH }}-ccache-all
|
key: ${{ runner.os }}-${{ env.CCACHE_SAFE_ARCH }}-ccache-all
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-${{ env.SAFE_ARCH }}-ccache-
|
${{ runner.os }}-${{ env.CCACHE_SAFE_ARCH }}-ccache-
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user