Skip to content

Commit

Permalink
ci: added ccache on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Nov 6, 2020
1 parent 763e112 commit ce4dffb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ job.container.id }}-ccache-${{ github.sha }}
restore-keys: ${{ job.container.id }}-ccache-

- run: .ci/linux/run-container.sh 6

linux_clang8:
Expand All @@ -19,6 +25,12 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ job.container.id }}-ccache-${{ github.sha }}
restore-keys: ${{ job.container.id }}-ccache-

- run: .ci/linux/run-container.sh 8
- uses: kittaakos/upload-artifact-as-is@v0
with:
Expand All @@ -31,6 +43,12 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ job.container.id }}-ccache-${{ github.sha }}
restore-keys: ${{ job.container.id }}-ccache-

- run: .ci/android/run-container.sh
- uses: kittaakos/upload-artifact-as-is@v0
with:
Expand All @@ -43,6 +61,12 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: actions/cache@v2
with:
path: ~/.ccache
key: ${{ job.container.id }}-ccache-${{ github.sha }}
restore-keys: ${{ job.container.id }}-ccache-

- run: .ci/macos/install-dependencies.sh
- run: .ci/macos/build.sh
- uses: kittaakos/upload-artifact-as-is@v0
Expand Down

0 comments on commit ce4dffb

Please sign in to comment.