Skip to content

Commit

Permalink
Add some caching to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe0606 committed Jun 26, 2024
1 parent 2c81ccd commit 9837c84
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/runcpptest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,27 @@ jobs:
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'

python-version: '3.10'
cache: 'pip'
cache-dependency-path: Testing/requirements.txt

- name: Install system packages
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install libpython3.9 libtinfo5
- name: Cache packs
uses: actions/cache@v4
with:
key: packs-cmsis-dsp
restore-keys: |
packs-
path: /home/runner/.cache/arm/packs

- name: Activate vcpkg
uses: ARM-software/cmsis-actions/vcpkg@v1
with:
cache: "-${{ matrix.compiler }}-${{ matrix.core }}"
cache: "-cmsis_dsp_vcpkg"

- name: Activate Arm tool license
uses: ARM-software/cmsis-actions/armlm@v1
Expand All @@ -54,14 +64,22 @@ jobs:
echo "Install missing python packages"
pip install -r ../Testing/requirements.txt
cat ${{ github.workspace }}
echo "Load missing pack"
csolution list packs -s test.csolution.yml -m > required_packs.txt
cat required_packs.txt
cpackget add -a -f required_packs.txt
- name: Cache boost
uses: actions/cache@v4
with:
key: boost-cmsis-dsp
restore-keys: |
boost-cmsis-dsp
path: boost_1_84_0

- name: Install boost
run: |
echo "Install boost"
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/runtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,27 @@ jobs:
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.10'
cache: 'pip'
cache-dependency-path: Testing/requirements.txt

- name: Install system packages
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install libpython3.9 libtinfo5
- name: Cache packs
uses: actions/cache@v4
with:
key: packs-cmsis-dsp
restore-keys: |
packs-
path: /home/runner/.cache/arm/packs

- name: Activate vcpkg
uses: ARM-software/cmsis-actions/vcpkg@v1
with:
cache: "-${{ matrix.compiler }}"
cache: "-cmsis_dsp_vcpkg"

- name: Activate Arm tool license
uses: ARM-software/cmsis-actions/armlm@v1
Expand Down

0 comments on commit 9837c84

Please sign in to comment.