Skip to content

Commit 0b3ef0c

Browse files
committed
Use smaller west for CI
1 parent 85193a6 commit 0b3ef0c

File tree

3 files changed

+55
-3
lines changed

3 files changed

+55
-3
lines changed

.github/workflows/zephyr-samples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
- uses: actions/checkout@v3
3737
- name: Run Docker image from GHCR
3838
env:
39-
DOCKER_RUN_TARGET: "/bacnet/westinit.sh && /bacnet/samples.sh"
39+
DOCKER_RUN_TARGET: "/bacnet/west-ci.sh && /bacnet/samples.sh"
4040
ZEPHYR_CONTAINER: "ghcr.io/zephyrproject-rtos/ci:v0.26-branch"
4141
run: |
4242
ls -alh
4343
echo "== Run Docker image from GHCR"
44-
docker run --rm --rm -v "$(pwd):/bacnet" "$ZEPHYR_CONTAINER" /bin/bash -c "$DOCKER_RUN_TARGET"
44+
docker run --rm -v "$(pwd):/bacnet" "$ZEPHYR_CONTAINER" /bin/bash -c "$DOCKER_RUN_TARGET"
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

33
# setup our build environment
4-
west init -l .
4+
west --version
5+
west init -l --mf ./west-ci.yml .
56
west update > /dev/null 2>&1

west-ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# The default west manifest file for the bacnet-stack zephyr project.
2+
#
3+
# The per-installation west configuration file, .west/config, sets the
4+
# path to the project containing this file in the [manifest] section's
5+
# "path" variable.
6+
#
7+
# This imports the latest upstream Zephyr manifest file.
8+
#
9+
# You can pass your manifest repositories to west init when creating a
10+
# new Zephyr installation. See the west documentation for more
11+
# information.
12+
#
13+
# Beginning with west 0.8, the following command-line options
14+
# can be used to initialize with a repository lacking a west.yml
15+
# file at the top level.
16+
#
17+
# west init
18+
# -m <repository>
19+
# --mr <branch_name>
20+
# --mf <manifest_pathname>
21+
# <workspace>
22+
23+
manifest:
24+
version: 1.2
25+
26+
remotes:
27+
- name: bacnet-stack
28+
url-base: https://github.com/bacnet-stack
29+
- name: zephyrproject-rtos
30+
url-base: https://github.com/zephyrproject-rtos
31+
32+
defaults:
33+
remote: bacnet-stack
34+
35+
self:
36+
path: bacnet
37+
38+
projects:
39+
- name: bacnet-stack
40+
path: bacnet/stack # Hidden by bacnet/.gitignore
41+
revision: master
42+
- name: zephyr
43+
path: zephyr
44+
revision: v3.7.1
45+
remote: zephyrproject-rtos
46+
west-commands: scripts/west-commands.yml
47+
import:
48+
name-allowlist:
49+
- cmsis
50+
- picolibc
51+
- hal_stm32

0 commit comments

Comments
 (0)