mirror of
https://github.com/dwhinham/mt32-pi.git
synced 2026-10-26 22:11:05 +00:00
CI: Enable ccache
This commit is contained in:
1 parent
9251ab1cbe
commit
e60d4b39ee
1 file changed
+9
-1
@@ -46,6 +46,11 @@ jobs:
|
||||
- name: Fetch submodules
|
||||
run: make submodules
|
||||
|
||||
- name: Setup ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
with:
|
||||
key: ${{ env.toolchain-version }}-${{ matrix.board }}
|
||||
|
||||
- name: Cache ARM toolchains
|
||||
id: cache-toolchains
|
||||
uses: actions/cache@v3
|
||||
@@ -66,8 +71,11 @@ jobs:
|
||||
|
||||
- name: Update PATH
|
||||
run: |
|
||||
mkdir ~/ccache_bin
|
||||
for triplet in arm-none-eabi aarch64-none-elf; do
|
||||
echo "$HOME/arm-gnu-toolchain-${{ env.toolchain-version }}-x86_64-${triplet}/bin" >> $GITHUB_PATH
|
||||
ln -s $(which ccache) ~/ccache_bin/${triplet}-gcc
|
||||
ln -s $(which ccache) ~/ccache_bin/${triplet}-g++
|
||||
echo "$HOME/ccache_bin:$HOME/arm-gnu-toolchain-${{ env.toolchain-version }}-x86_64-${triplet}/bin" >> $GITHUB_PATH
|
||||
done
|
||||
|
||||
- name: Build
|
||||
|
||||
Reference in new issue
Block a user