Skip to content

Commit eecd567

Browse files
chore fix: ccache missing
1 parent e3571a7 commit eecd567

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/build-examples.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ jobs:
4242
ccache-host-
4343
4444
- name: Build host examples
45-
run: python3 scripts/build_examples.py --host
45+
run: |
46+
mkdir -p ~/.cache/ccache
47+
python3 scripts/build_examples.py --host
4648
env:
4749
CCACHE_DIR: ~/.cache/ccache
4850

@@ -59,7 +61,19 @@ jobs:
5961
- name: Install build tools
6062
run: |
6163
sudo apt-get update
62-
sudo apt-get install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi ninja-build
64+
sudo apt-get install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi ninja-build ccache
65+
66+
- name: Cache ccache
67+
uses: actions/cache@v4
68+
with:
69+
path: ~/.cache/ccache
70+
key: ccache-stm32-${{ github.run_id }}
71+
restore-keys: |
72+
ccache-stm32-
6373
6474
- name: Build STM32 examples
65-
run: python3 scripts/build_examples.py --stm32
75+
run: |
76+
mkdir -p ~/.cache/ccache
77+
python3 scripts/build_examples.py --stm32
78+
env:
79+
CCACHE_DIR: ~/.cache/ccache

0 commit comments

Comments
 (0)