Skip to content

Commit

Permalink
Github Actions: Fix ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrossard committed Aug 5, 2023
1 parent ca8de83 commit f24422e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,10 @@ jobs:
- name: Install dependencies
run: |
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
export PATH="/usr/lib/ccache:$ARM_NONE_EABI_GCC_PATH:/home/runner/.local/bin:$PATH"
for i in "$ARM_NONE_EABI_GCC_PATH/"* ; do sudo ln -s /usr/bin/ccache /usr/lib/ccache/$(basename $i); done
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
Expand All @@ -72,11 +68,11 @@ jobs:
- name: Compile
run: |
export PATH="/usr/lib/ccache:${{ runner.temp }}/arm-gcc/bin/:/home/runner/.local/bin:$PATH"
export PATH="/usr/lib/ccache:$ARM_NONE_EABI_GCC_PATH:/home/runner/.local/bin:$PATH"
python tools/progen_compile.py --release --parallel -v
(ls -lR firmware_*; ccache -s; arm-none-eabi-gcc -v) | tee log.txt
mkdir bootloaders
cp projectfiles/make_gcc_arm/*_bl/build/*_crc.{bin,hex} bootloaders
(ls -lR firmware_*; ccache -s; arm-none-eabi-gcc -v) | tee log.txt
- name: Upload test artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit f24422e

Please sign in to comment.