mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-28 12:30:58 +00:00
move Zephyr tests to their own script
This commit is contained in:
1 parent
d3e67733a6
commit
dfeb929e0e
6 files changed
+39
-21
No files matched your search
@@ -444,24 +444,6 @@ jobs:
|
|||||||
- run: sudo pip install yq
|
- run: sudo pip install yq
|
||||||
- run: cd test/cube && make
|
- run: cd test/cube && make
|
||||||
|
|
||||||
zephyr_examples:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with: { fetch-depth: 2 }
|
|
||||||
- run: sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
|
||||||
- run: make -C tutorials/zephyr init REPO=zephyrprojectrtos/ci:v0.26.14 # "no space left on device" with newers
|
|
||||||
- name: minify manifest
|
|
||||||
uses: mikefarah/yq@master
|
|
||||||
with:
|
|
||||||
cmd: yq -i eval '(.manifest.defaults, .manifest.remotes, .manifest.projects[] | select(.name == "cmsis" or .name == "hal_stm32" or .name == "mbedtls" or .name == "mcuboot" or .name == "picolibc" | del(.null) ), .manifest.self) as $i ireduce({};setpath($i | path; $i)) | del(.manifest.projects.[].null) | del(..|select(length==0))' tutorials/zephyr/zephyrproject/zephyr/west.yml
|
|
||||||
- run: make -C tutorials/zephyr update
|
|
||||||
- run: make -C tutorials/zephyr/device-dashboard build
|
|
||||||
- run: make -C tutorials/zephyr/http-client build
|
|
||||||
- run: make -C tutorials/zephyr/http-server build
|
|
||||||
- run: make -C tutorials/zephyr/mqtt-aws-client build
|
|
||||||
- run: make -C tutorials/zephyr/websocket-server build
|
|
||||||
|
|
||||||
test_f7:
|
test_f7:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
name: Full build and test
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *' # run at 12 AM UTC
|
||||||
|
# Allow manual runs
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
zephyr_examples:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
revno: ["--mr v3.7-branch"] # ["--mr v3.7-branch", "--mr v4.2.0"] # LTS, latest stable
|
||||||
|
name: Zephyr ${{ matrix.revno }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with: { fetch-depth: 2 }
|
||||||
|
- run: sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
||||||
|
- run: make -C tutorials/zephyr init REPO=zephyrprojectrtos/ci REVNO=${{ matrix.revno }}
|
||||||
|
- run: make -C tutorials/zephyr minify REVNO=${{ matrix.revno }}
|
||||||
|
- run: make -C tutorials/zephyr update
|
||||||
|
- run: make -C tutorials/zephyr/device-dashboard build
|
||||||
|
- run: make -C tutorials/zephyr/http-client build
|
||||||
|
- run: make -C tutorials/zephyr/http-server build
|
||||||
|
- run: make -C tutorials/zephyr/mqtt-aws-client build
|
||||||
|
- run: make -C tutorials/zephyr/websocket-server build
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"data-root": "/mnt/docker"
|
||||||
|
}
|
||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
df
|
||||||
|
ls -l /mnt
|
||||||
|
sudo systemctl stop docker
|
||||||
|
sudo mkdir -p /mnt/docker
|
||||||
|
sudo cp test/ga_docker_daemon.json /etc/docker/daemon.json
|
||||||
|
sudo systemctl start docker
|
||||||
|
|
||||||
@@ -7,7 +7,6 @@ DOCKER_ZEPHYR_PATH = $(DOCKER_PROJECT_DIR)/$(ZEPHYR_DIR)
|
|||||||
|
|
||||||
DOCKER ?= docker run --rm -v $(PROJECT_PATH):$(DOCKER_PROJECT_PATH) -v $(ZEPHYR_PATH):$(DOCKER_ZEPHYR_PATH)
|
DOCKER ?= docker run --rm -v $(PROJECT_PATH):$(DOCKER_PROJECT_PATH) -v $(ZEPHYR_PATH):$(DOCKER_ZEPHYR_PATH)
|
||||||
REPO ?= zephyrprojectrtos/ci
|
REPO ?= zephyrprojectrtos/ci
|
||||||
REVNO ?= --mr v3.7-branch
|
|
||||||
|
|
||||||
# https://github.com/mikefarah/yq
|
# https://github.com/mikefarah/yq
|
||||||
YQ ?= $(DOCKER) --user="root" mikefarah/yq
|
YQ ?= $(DOCKER) --user="root" mikefarah/yq
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ zephyr:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
cp $(TOP_DIR)/mongoose.[ch] src/
|
cp $(TOP_DIR)/mongoose.[ch] src/
|
||||||
cp $(TOP_DIR)/examples/device-dashboard/net.[ch] src/
|
cp $(TOP_DIR)/tutorials/http/device-dashboard/net.[ch] src/
|
||||||
cp $(TOP_DIR)/examples/device-dashboard/packed_fs.c src/
|
cp $(TOP_DIR)/tutorials/http/device-dashboard/packed_fs.c src/
|
||||||
$(DOCKER) west build $(BUILD_ARGS) -p auto $(realpath $(CURDIR)) $(OVERLAY)
|
$(DOCKER) west build $(BUILD_ARGS) -p auto $(realpath $(CURDIR)) $(OVERLAY)
|
||||||
|
|
||||||
run: DOCKER_ARGS ?= --cap-add=NET_ADMIN --device /dev/net/tun --net=host -it
|
run: DOCKER_ARGS ?= --cap-add=NET_ADMIN --device /dev/net/tun --net=host -it
|
||||||
|
|||||||
Reference in new issue
Block a user