mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-05 21:18:32 +08:00
move Zephyr tests to their own script
This commit is contained in:
parent
d3e67733a6
commit
dfeb929e0e
18
.github/workflows/nightly.yml
vendored
18
.github/workflows/nightly.yml
vendored
@ -444,24 +444,6 @@ jobs:
|
||||
- run: sudo pip install yq
|
||||
- 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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
26
.github/workflows/zephyr.yml
vendored
Normal file
26
.github/workflows/zephyr.yml
vendored
Normal file
@ -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
|
3
test/ga_docker_daemon.json
Normal file
3
test/ga_docker_daemon.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"data-root": "/mnt/docker"
|
||||
}
|
8
test/setup_ga_docker_filesystem.sh
Executable file
8
test/setup_ga_docker_filesystem.sh
Executable file
@ -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)
|
||||
REPO ?= zephyrprojectrtos/ci
|
||||
REVNO ?= --mr v3.7-branch
|
||||
|
||||
# https://github.com/mikefarah/yq
|
||||
YQ ?= $(DOCKER) --user="root" mikefarah/yq
|
||||
|
@ -17,8 +17,8 @@ zephyr:
|
||||
|
||||
build:
|
||||
cp $(TOP_DIR)/mongoose.[ch] src/
|
||||
cp $(TOP_DIR)/examples/device-dashboard/net.[ch] src/
|
||||
cp $(TOP_DIR)/examples/device-dashboard/packed_fs.c src/
|
||||
cp $(TOP_DIR)/tutorials/http/device-dashboard/net.[ch] src/
|
||||
cp $(TOP_DIR)/tutorials/http/device-dashboard/packed_fs.c src/
|
||||
$(DOCKER) west build $(BUILD_ARGS) -p auto $(realpath $(CURDIR)) $(OVERLAY)
|
||||
|
||||
run: DOCKER_ARGS ?= --cap-add=NET_ADMIN --device /dev/net/tun --net=host -it
|
||||
|
Loading…
Reference in New Issue
Block a user