Skip to content

Commit 008168f

Browse files
workflows: use self-hosted
Use self-hosted runners for double reason. CI on PR becomes very fast, no docker pull and west update. Also running out of github runners usage for private repo. Signed-off-by: Giacomo Dematteis <giacomo.dematteis@nordicsemi.no>
1 parent b7ef06e commit 008168f

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
lines changed

.github/workflows/build.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,20 @@ 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"
3528
pull_request:
3629
paths-ignore:
37-
- "tests/on_target/**"
30+
- "tests/**"
31+
- "docs/**"
32+
- "scripts/**"
33+
- "README.md"
3834
- ".github/workflows/*.yml"
3935
- "!.github/workflows/build.yml"
4036
schedule:
4137
- cron: "0 0 * * *"
4238

4339
jobs:
4440
build:
45-
runs-on: ubuntu-24.04
41+
runs-on: build_self_hosted
4642
container: ghcr.io/zephyrproject-rtos/ci:v0.27.4
4743
env:
4844
CMAKE_PREFIX_PATH: /opt/toolchains
@@ -58,7 +54,11 @@ jobs:
5854
- name: Initialize
5955
working-directory: asset-tracker-template
6056
run: |
57+
if [ ! -d "../.west" ]; then
6158
west init -l .
59+
else
60+
echo ".west folder already exists, skipping west init."
61+
fi
6262
west config manifest.group-filter +bsec
6363
west config build.sysbuild True
6464
west update -o=--depth=1 -n

.github/workflows/compliance.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@ on:
88

99
jobs:
1010
compliance_job:
11-
runs-on: ubuntu-24.04
11+
runs-on: build_self_hosted
1212
name: Run compliance checks on patch series (PR)
13+
container: python:3.13.0-slim-bookworm
1314

1415
# Skip job if it was triggered by Renovate Bot
1516
if: ${{ !contains(github.actor, 'renovate') }}
1617

1718
steps:
18-
- name: Pip install
19+
- name: Install requirements
1920
run: |
21+
apt-get update
22+
apt-get install --no-install-recommends -y libmagic1 git
2023
pip install unidiff yamllint junitparser python-magic west lxml gitlint
2124
2225
- name: Checkout the code
@@ -29,15 +32,11 @@ jobs:
2932
- name: Initialize
3033
working-directory: asset-tracker-template
3134
run: |
35+
if [ ! -d "../.west" ]; then
3236
west init -l .
33-
west config manifest.project-filter -- \
34-
"-bsim,-wfa-qt-control-app,-mcuboot,-qcbor,-mbedtls,-oberon-psa-crypto,\
35-
-nrfxlib,-trusted-firmware-m,-psa-arch-tests,-matter,-cjson,-azure-sdk-for-c,\
36-
-cirrus,-openthread,-suit-generator,-suit-processor,-cmock,-memfault-firmware-sdk,\
37-
-canopennode,-chre,-lz4,-nanopb,-tf-m-tests,-zscilib,-cmsis-dsp,-cmsis-nn,-hostap,\
38-
-liblc3,-loramac-node,-lvgl,-nrf_hw_models,-nrf_wifi,-open-amp,-picolibc,-uoscore-uedhoc,\
39-
-zcbor,-soc-hwmv1,-coremark,-cmsis,-edtt,-fatfs,-hal_nordic,-hal_st,-hal_wurthelektronik,\
40-
-libmetal,-littlefs,-mipi-sys-t,-net-tools,-segger,-tinycrypt"
37+
else
38+
echo ".west folder already exists, skipping west init."
39+
fi
4140
west update -o=--depth=1 -n
4241
4342
- name: Run Compliance Tests

.github/workflows/sonarcloud.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
jobs:
1818
build:
1919
name: Build and analyze
20-
runs-on: ubuntu-latest
20+
runs-on: build_self_hosted
2121
container: ghcr.io/zephyrproject-rtos/ci:v0.27.4
2222
env:
2323
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
@@ -39,7 +39,11 @@ jobs:
3939
- name: Initialize
4040
working-directory: asset-tracker-template
4141
run: |
42+
if [ ! -d "../.west" ]; then
4243
west init -l .
44+
else
45+
echo ".west folder already exists, skipping west init."
46+
fi
4347
west config manifest.group-filter +bsec
4448
west config build.sysbuild True
4549
west update -o=--depth=1 -n

.github/workflows/target-test.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ jobs:
4343
strategy:
4444
matrix:
4545
# nrf9151dk not available yet
46-
# device: [thingy91x, nrf9151dk]
47-
device: [thingy91x]
46+
device: [cia-trd-thingy91x]
4847

4948
# Self-hosted runner is labeled according to the device it is linked with
5049
runs-on: ${{ matrix.device }}

0 commit comments

Comments
 (0)