Skip to content

Commit

Permalink
add Wizard examples
Browse files Browse the repository at this point in the history
  • Loading branch information
scaprile committed Sep 26, 2024
1 parent 399291d commit 4ede383
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 2 }
- run: echo # nothing specific to install or do
- run: sudo apt -y update && sudo apt -y install yq
- run: cd test/cube && make

zephyr_examples:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quicktest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ jobs:
- run: |
if ./test/match_changed_files.sh '^src|examples/stm32/nucleo-*-cube-*'; then
echo GO=1 >> $GITHUB_ENV
# nothing specific to install or do
sudo apt -y update && sudo apt -y install yq
fi
- if: ${{ env.GO == 1 }}
run: cd test/cube && make
Expand Down
7 changes: 3 additions & 4 deletions test/cube/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ ROOT ?= $(realpath $(CURDIR)/../..)
PROJECTS ?= $(wildcard ../../examples/stm32/nucleo-*-cube-*)
TARGET ?= Debug
DOCKER = docker run --rm -v $(ROOT):$(ROOT) -v $(CURDIR):/root -w $(CURDIR)
IMAGE ?= springrockconsulting/stm32cubeide:v1
# image author did not set path, so a hardcoded reference to a variable name dir is needed
PATHTO ?= /opt/st/stm32cubeide_1.12.0/
IMAGE ?= scaprile/cubeozone
# set PATHTO if image author did not set path

all: $(PROJECTS)
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -removeAll workspace

$(PROJECTS): FORCE
$(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $(@F)/$(TARGET)
(make -C $@ && make -C $@ clean) || $(DOCKER) $(IMAGE) $(PATHTO)headless-build.sh -data workspace -import $@ -cleanBuild $(@F)/$(TARGET)

FORCE:

Expand Down

0 comments on commit 4ede383

Please sign in to comment.