Skip to content

Commit

Permalink
Fix ccache in Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrossard committed Aug 4, 2023
1 parent beb5984 commit 5504130
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,25 @@ jobs:
sudo apt install -y ccache ninja-build
export PATH=/usr/lib/ccache:${{ runner.temp }}/arm-gcc/bin/:/home/runner/.local/bin:$PATH
for i in ${{ runner.temp }}/arm-gcc/bin/* ; do sudo ln -s /usr/bin/ccache /usr/lib/ccache/$(basename $i); done
ccache --set-config=cache_dir="$GITHUB_WORKSPACE"
ccache --set-config=cache_dir="$GITHUB_WORKSPACE/.ccache"
ccache --set-config=max_size=2Gi
ccache -z -s
arm-none-eabi-gcc -v | tee log.txt
(git status; git log -1 )>> log.txt
(git status; git log -1)>> log.txt
- name: Cache CCache
id: ccache
uses: actions/cache@v2
with:
path: .ccache
key: ${{ runner.os }}-ccache-${{ hashFiles('log.txt') }}
restore-keys: ${{ runner.os }}-ccache-
restore-keys: |
${{ runner.os }}-ccache-${{ hashFiles('log.txt') }}
${{ runner.os }}-ccache-
- name: Compile
run: |
export PATH="/usr/lib/ccache:${{ runner.temp }}/arm-gcc/bin/:/home/runner/.local/bin:$PATH"
ccache -z -s
python tools/progen_compile.py --release --parallel -v
(ls -lR firmware_*; ccache -s; arm-none-eabi-gcc -v) | tee log.txt
mkdir bootloaders
Expand Down

0 comments on commit 5504130

Please sign in to comment.