Skip to content

Commit fd1b84d

Browse files
workflows: caching
Caching. Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
1 parent 05fca9e commit fd1b84d

File tree

4 files changed

+56
-22
lines changed

4 files changed

+56
-22
lines changed

.github/workflows/build.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ on:
2525
description: The version of the firmware built on this run_id
2626
value: ${{ jobs.build.outputs.version }}
2727

28-
push:
29-
branches:
30-
- main
31-
paths-ignore:
32-
- "tests/on_target/**"
33-
- ".github/workflows/*.yml"
34-
- "!.github/workflows/build.yml"
35-
pull_request:
36-
paths-ignore:
37-
- "tests/on_target/**"
38-
- ".github/workflows/*.yml"
39-
- "!.github/workflows/build.yml"
28+
# push:
29+
# branches:
30+
# - main
31+
# paths-ignore:
32+
# - "tests/on_target/**"
33+
# - ".github/workflows/*.yml"
34+
# - "!.github/workflows/build.yml"
35+
# pull_request:
36+
# paths-ignore:
37+
# - "tests/on_target/**"
38+
# - ".github/workflows/*.yml"
39+
# - "!.github/workflows/build.yml"
4040
schedule:
4141
- cron: "0 0 * * *"
4242

@@ -92,7 +92,7 @@ jobs:
9292
echo "MEMFAULT_SW_TYPE=${{ inputs.memfault_sw_type }}" >> $GITHUB_ENV
9393
fi
9494
95-
# Out-of-box firmware build
95+
# Asset Tracker Template firmware build
9696

9797
- name: Build nrf91 firmware
9898
working-directory: asset-tracker-template/app

.github/workflows/compliance.yml

+34
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-24.04
1212
name: Run compliance checks on patch series (PR)
1313
container: ghcr.io/zephyrproject-rtos/ci:v0.27.4
14+
# container: python:3.13-slim-bookworm
1415

1516
# Skip job if it was triggered by Renovate Bot
1617
if: ${{ !contains(github.actor, 'renovate') }}
@@ -23,15 +24,48 @@ jobs:
2324
ref: ${{ github.event.pull_request.head.sha }}
2425
fetch-depth: 0
2526

27+
- name: DEBUUGG LS before west update
28+
working-directory: asset-tracker-template
29+
run: |
30+
echo "!!!!!!!!!Path of checked out asset-tracker-template"
31+
pwd
32+
echo "!!!!!!!!!Contents of asset-tracker-template"
33+
ls -a
34+
echo "!!!!!!!!!Contents of parent dir"
35+
ls -a ../
36+
37+
- name: Compliance module Cache
38+
# Use actions/cache to cache the directories that west will populate
39+
uses: actions/cache@v3
40+
id: cache-compliance
41+
with:
42+
path: |
43+
zephyr/scripts/ci
44+
zephyr/scripts/get_maintainer.py
45+
key: ${{ runner.os }}-compliance-${{ hashFiles('asset-tracker-template/west.yml') }}
46+
restore-keys: |
47+
${{ runner.os }}-compliance-
48+
2649
- name: Initialize
2750
working-directory: asset-tracker-template
51+
if: steps.cache-compliance.outputs.cache-hit != 'true'
2852
run: |
2953
west init -l .
3054
west config manifest.group-filter +bsec
3155
west config build.sysbuild True
3256
west update -o=--depth=1 -n
3357
west blobs fetch hal_nordic
3458
59+
- name: DEBUUUG LS after west update
60+
working-directory: asset-tracker-template
61+
run: |
62+
echo "!!!!!!!!!Path of checked out asset-tracker-template"
63+
pwd
64+
echo "!!!!!!!!!Contents of asset-tracker-template"
65+
ls -a
66+
echo "!!!!!!!!!Contents of parent dir"
67+
ls -a ../
68+
3569
- name: Run Compliance Tests
3670
id: compliance
3771
shell: bash

.github/workflows/sonarcloud.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
paths-ignore:
77
- ".github/workflows/docs-build-and-publish.yml"
88
- "docs/**"
9-
pull_request:
10-
paths:
11-
- '**/*.c'
12-
- '**/*.h'
13-
- west.yml
14-
- '**/CMakelists.txt'
15-
- '**/Kconfig*'
16-
- '**/prj.conf'
9+
# pull_request:
10+
# paths:
11+
# - '**/*.c'
12+
# - '**/*.h'
13+
# - west.yml
14+
# - '**/CMakelists.txt'
15+
# - '**/Kconfig*'
16+
# - '**/prj.conf'
1717
jobs:
1818
build:
1919
name: Build and analyze

app/src/modules/app/app.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static void triggers_send(void)
121121

122122
err = zbus_chan_pub(&NETWORK_CHAN, &network_msg, K_SECONDS(1));
123123
if (err) {
124-
LOG_ERR("zbus_chan_pub, error: %d", err);
124+
LOG_ERR("PIPPO zbus_chan_pub, error: %d", err);
125125
SEND_FATAL_ERROR();
126126
return;
127127
}

0 commit comments

Comments
 (0)