add Wizard examples

This commit is contained in:
Sergio R. Caprile committed 2024-09-26 20:20:00 -03:00
1 parent 399291d783
commit 882dd1f3a7
3 files changed
+5 -6

No files matched your search

+1 -1
View File
@@ -484,7 +484,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: { fetch-depth: 2 } with: { fetch-depth: 2 }
- run: echo # nothing specific to install or do - run: sudo pip install yq
- run: cd test/cube && make - run: cd test/cube && make
zephyr_examples: zephyr_examples:
+1 -1
View File
@@ -337,7 +337,7 @@ jobs:
- run: | - run: |
if ./test/match_changed_files.sh '^src|examples/stm32/nucleo-*-cube-*'; then if ./test/match_changed_files.sh '^src|examples/stm32/nucleo-*-cube-*'; then
echo GO=1 >> $GITHUB_ENV echo GO=1 >> $GITHUB_ENV
# nothing specific to install or do sudo pip install yq
fi fi
- if: ${{ env.GO == 1 }} - if: ${{ env.GO == 1 }}
run: cd test/cube && make run: cd test/cube && make
+3 -4
View File
@@ -2,15 +2,14 @@ ROOT ?= $(realpath $(CURDIR)/../..)
PROJECTS ?= $(wildcard ../../examples/stm32/nucleo-*-cube-*) PROJECTS ?= $(wildcard ../../examples/stm32/nucleo-*-cube-*)
TARGET ?= Debug TARGET ?= Debug
DOCKER = docker run --rm -v $(ROOT):$(ROOT) -v $(CURDIR):/root -w $(CURDIR) DOCKER = docker run --rm -v $(ROOT):$(ROOT) -v $(CURDIR):/root -w $(CURDIR)
IMAGE ?= springrockconsulting/stm32cubeide:v1 IMAGE ?= scaprile/cubeozone
# image author did not set path, so a hardcoded reference to a variable name dir is needed # set PATHTO if image author did not set path
PATHTO ?= /opt/st/stm32cubeide_1.12.0/
all: $(PROJECTS) all: $(PROJECTS)
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -removeAll workspace $(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -removeAll workspace
$(PROJECTS): FORCE $(PROJECTS): FORCE
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $(@F)/$(TARGET) (make -C $@ && sudo make -C $@ clean) || $(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $(@F)/$(TARGET)
FORCE: FORCE: