Skip to content

Commit 96d5109

Browse files
authored
Merge pull request #3318 from hathach/static-analysis
Static analysis
2 parents ac37176 + 42f000d commit 96d5109

File tree

66 files changed

+724
-350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+724
-350
lines changed

.circleci/config2.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ commands:
3434
chmod +x toolchain.run
3535
./toolchain.run -p ~/cache/<< parameters.toolchain >>/gnurx -y
3636
elif [[ << parameters.toolchain >> == arm-iar ]]; then
37+
wget --progress=dot:giga https://netstorage.iar.com/FileStore/STANDARD/001/003/926/iar-lmsc-tools_1.8_amd64.deb -O ~/cache/<< parameters.toolchain >>/iar-lmsc-tools.deb
3738
wget --progress=dot:giga $toolchain_url -O ~/cache/<< parameters.toolchain >>/toolchain.deb
3839
else
3940
wget --progress=dot:giga $toolchain_url -O toolchain.tar.gz
@@ -44,6 +45,7 @@ commands:
4445
# Add toolchain to PATH
4546
if [[ << parameters.toolchain >> == arm-iar ]]; then
4647
# Install IAR since we only cache deb file
48+
sudo dpkg -i ~/cache/<< parameters.toolchain >>/iar-lmsc-tools.deb
4749
sudo dpkg --ignore-depends=libusb-1.0-0 -i ~/cache/<< parameters.toolchain >>/toolchain.deb
4850
echo "export PATH=$PATH:/opt/iar/cxarm/arm/bin" >> $BASH_ENV
4951
else

.github/actions/get_deps/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ runs:
1919
- name: Linux dependencies
2020
if: runner.os == 'Linux'
2121
run: |
22-
sudo apt install -y ninja-build
22+
NINJA_URL=https://github.com/ninja-build/ninja/releases/download/v1.13.1/ninja-linux.zip
23+
wget $NINJA_URL -O ninja-linux.zip
24+
unzip ninja-linux.zip -d ninja-bin
25+
echo >> $GITHUB_PATH "${{ github.workspace }}/ninja-bin"
2326
shell: bash
2427

2528
- name: Get Dependencies

.github/actions/setup_toolchain/download/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ runs:
2929
chmod +x toolchain.run
3030
./toolchain.run -p ~/cache/${{ inputs.toolchain }}/gnurx -y
3131
elif [[ ${{ inputs.toolchain }} == arm-iar ]]; then
32+
wget --progress=dot:giga https://netstorage.iar.com/FileStore/STANDARD/001/003/926/iar-lmsc-tools_1.8_amd64.deb -O ~/cache/${{ inputs.toolchain }}/iar-lmsc-tools.deb
3233
wget --progress=dot:giga ${{ inputs.toolchain_url }} -O ~/cache/${{ inputs.toolchain }}/cxarm.deb
3334
else
3435
wget --progress=dot:giga ${{ inputs.toolchain_url }} -O toolchain.tar.gz
@@ -39,7 +40,8 @@ runs:
3940
- name: Setup Toolchain
4041
run: |
4142
if [[ ${{ inputs.toolchain }} == arm-iar ]]; then
42-
sudo apt-get install -y ~/cache/${{ inputs.toolchain }}/cxarm.deb
43+
sudo dpkg -i ~/cache/${{ inputs.toolchain }}/iar-lmsc-tools.deb
44+
sudo apt install -y ~/cache/${{ inputs.toolchain }}/cxarm.deb
4345
echo >> $GITHUB_PATH "/opt/iar/cxarm/arm/bin"
4446
else
4547
echo >> $GITHUB_PATH `echo ~/cache/${{ inputs.toolchain }}/*/bin`

.github/actions/setup_toolchain/toolchain.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"msp430-gcc": "http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/9_2_0_0/export/msp430-gcc-9.2.0.50_linux64.tar.bz2",
66
"riscv-gcc": "https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v13.2.0-2/xpack-riscv-none-elf-gcc-13.2.0-2-linux-x64.tar.gz",
77
"rx-gcc": "https://github.com/hathach/rx_device/releases/download/0.0.1/gcc-8.3.0.202411-GNURX-ELF.run",
8-
"arm-iar": "https://netstorage.iar.com/FileStore/STANDARD/001/003/583/cxarm-9.60.4.deb"
8+
"arm-iar": "https://netstorage.iar.com/FileStore/STANDARD/001/003/723/cxarm-9.70.1.deb"
99
}

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ jobs:
219219
uses: actions/checkout@v4
220220

221221
- name: Download Artifacts
222-
uses: actions/download-artifact@v4
222+
uses: actions/download-artifact@v5
223223
with:
224224
path: cmake-build
225225
merge-multiple: true

.github/workflows/codeql-buildscript.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/codeql.yml

Lines changed: 0 additions & 137 deletions
This file was deleted.

.github/workflows/fail_on_error.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)