From 5a569303a26ad77617500c01537596acfafc83ba Mon Sep 17 00:00:00 2001 From: PonomarevDA Date: Sun, 28 Jan 2024 18:47:16 +0300 Subject: [PATCH] [temp] update tools (dev version) --- .github/workflows/cyphal.yml | 23 ++++++++++++++++++----- .github/workflows/dronecan.yml | 8 ++++---- Makefile | 2 +- scripts/tools | 2 +- 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cyphal.yml b/.github/workflows/cyphal.yml index b18b005..0c876a1 100644 --- a/.github/workflows/cyphal.yml +++ b/.github/workflows/cyphal.yml @@ -11,19 +11,25 @@ jobs: fetch-depth: 0 - name: Install dependencies - run: ./scripts/tools/install_for_ubuntu.sh --yes + run: | + cd scripts/tools && pip install . + pip install nnvg + + - run: make cyphal - name: Archive .bin file uses: actions/upload-artifact@v3 with: name: cyphal_firmware.bin path: build/obj/example.bin + if-no-files-found: error - name: Archive .elf file uses: actions/upload-artifact@v3 with: name: cyphal_firmware.elf path: build/obj/example.elf + if-no-files-found: error sitl: runs-on: ubuntu-22.04 @@ -34,14 +40,21 @@ jobs: submodules: recursive fetch-depth: 0 + - name: Clone Cyphal DSDL + run: | + mkdir -p /home/runner/.cyphal/zubax_dsdl + git clone https://github.com/Zubax/zubax_dsdl.git /home/runner/.cyphal/zubax_dsdl + + mkdir -p /home/runner/.cyphal/public_regulated_data_types + git clone https://github.com/OpenCyphal/public_regulated_data_types.git /home/runner/.cyphal/public_regulated_data_types + - name: Install dependencies run: | - ./scripts/tools/install_for_ubuntu.sh --yes - pip install pytest + cd scripts/tools && pip install . + pip install nnvg - run: make sitl_cyphal - run: | - export REG_DATA_TYPE_PATH="$PWD/Libs/Cyphal/Libs/public_regulated_data_types/uavcan $PWD/Libs/Cyphal/Libs/public_regulated_data_types/reg" make run & cd scripts/tools/cyphal source init.sh -i slcan0 -n 127 -v - ./specification_checker.py + rl-test-cyphal-specification -k "not test_unique_id" diff --git a/.github/workflows/dronecan.yml b/.github/workflows/dronecan.yml index 8b07084..43bdb47 100644 --- a/.github/workflows/dronecan.yml +++ b/.github/workflows/dronecan.yml @@ -18,8 +18,8 @@ jobs: - name: Checkout Dronecan run: cd Libs/Dronecan && git checkout bb50fad # v0.3.1 - - name: Install dependencies - run: ./scripts/tools/install_for_ubuntu.sh --yes + # - name: Install dependencies + # run: ./scripts/tools/install_for_ubuntu.sh --yes - run: make dronecan @@ -40,8 +40,8 @@ jobs: - name: Checkout Dronecan run: cd Libs/Dronecan && git checkout bb50fad # v0.3.1 - - name: Install dependencies - run: ./scripts/tools/install_for_ubuntu.sh --yes + # - name: Install dependencies + # run: ./scripts/tools/install_for_ubuntu.sh --yes - name: Build SITL DroneCAN run: make sitl_dronecan diff --git a/Makefile b/Makefile index 0da05a1..4da6a13 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,7 @@ check_submodules: echo "[INFO] Directory is fine"; \ fi upload: - ./scripts/tools/stm32/flash.sh ${BUILD_OBJ_DIR}/example.bin + rl-upload-firmware --binary ${BUILD_OBJ_DIR}/example.bin run: ./scripts/tools/can/vcan.sh slcan0 ./build/obj/example.out diff --git a/scripts/tools b/scripts/tools index 3c17c06..3c7a5d5 160000 --- a/scripts/tools +++ b/scripts/tools @@ -1 +1 @@ -Subproject commit 3c17c06bb3cc0a28166a74ee6dea38b3dda10598 +Subproject commit 3c7a5d54712022f027c1799df96b396943e0b18b