Skip to content

Commit

Permalink
add rule 'Checks compiling examples'
Browse files Browse the repository at this point in the history
  • Loading branch information
amatilda committed Jun 27, 2024
1 parent 7a9bdc7 commit 8e15b1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/compiling_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ jobs:
- name: Download libclang and arm gcc tools
run: |
wget "http://z-uno.z-wave.me/files/z-uno2/tc//libclang_11_0_1-linux64.tar.gz"
# wget "http://z-uno.z-wave.me/files/z-uno2/tc//arm-none-eabi-gcc-10_3_1-linux64.tar.gz"
wget "http://z-uno.z-wave.me/files/z-uno2/tc//arm-none-eabi-gcc-10_3_1-linux64.tar.gz"
- name: Extract tools
run: |
mkdir tmp
tar -xvzf ./libclang_11_0_1-linux64.tar.gz -C ./tmp
# tar -xvzf ./arm-none-eabi-gcc-10_3_1-linux64.tar.gz -C ./tmp
# unzip ./toolchain/linux64/zme_make_linux64.zip -d ./tmp
tar -xvzf ./arm-none-eabi-gcc-10_3_1-linux64.tar.gz -C ./tmp
unzip ./toolchain/linux64/zme_make_linux64.zip -d ./tmp
- name: Checks compiling examples
run: |
ls -Rl ./tmp
# python3 script/compiling_examples.py ./tmp "10.3.1"
python3 script/compiling_examples.py ./tmp "10.3.1"
2 changes: 1 addition & 1 deletion script/compiling_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def CompliteAllChipLoopDirFunc(path_ino:str, chip_name:str, path_out:str, tool_p
zme_make = os.path.abspath(os.path.join(tool_path, "zme_make", "zme_make"))
path_gcc_include = os.path.abspath(os.path.join(tool_path, "gcc", "lib", "gcc", "arm-none-eabi", gcc_version, "include"))
path_gcc_bin = os.path.abspath(os.path.join(tool_path, "gcc", "bin"))
path_libclang = os.path.abspath(os.path.join(tool_path, "libClang"))
path_libclang = os.path.abspath(os.path.join(tool_path, "libclang"))
path_cores = os.path.abspath(os.path.join(path_core, "hardware", "arduino", "zunoG2", "cores"))
path_libraries = os.path.abspath(os.path.join(path_core, "hardware", "arduino", "zunoG2", "libraries"))
with os.scandir(path_ino) as it:
Expand Down

0 comments on commit 8e15b1c

Please sign in to comment.