Skip to content

Commit 9615662

Browse files
committed
Test
1 parent 8633dac commit 9615662

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/scripts/install-arduino-cli.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
OSBITS=`arch`
3+
OSBITS=`uname -m`
44
if [[ "$OSTYPE" == "linux"* ]]; then
55
export OS_IS_LINUX="1"
66
if [[ "$OSBITS" == "i686" ]]; then

.github/workflows/pre-commit.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ jobs:
3838
~/.cache/pip
3939
key: pre-commit|${{ env.PY_HASH }}|${{ hashFiles('.pre-commit-config.yaml', '.github/workflows/pre-commit.yml') }}
4040

41+
- name: Install dependencies
42+
run: |
43+
sudo apt update
44+
sudo apt install -y cppcheck
45+
python -m pip install pre-commit docutils
46+
bash .github/scripts/install-arduino-cli.sh
47+
bash .github/scripts/install-arduino-core-esp32.sh
48+
4149
- name: Wait on other jobs to finish
4250
uses: lucasssvaz/wait-on-workflow@v1
4351
id: wait-on-jobs
@@ -71,9 +79,6 @@ jobs:
7179
name: compile_commands
7280
path: ~/compile_commands.json
7381

74-
- name: Install python dependencies
75-
run: python -m pip install pre-commit docutils
76-
7782
- name: Get changed files
7883
id: changed-files
7984
uses: tj-actions/[email protected]

0 commit comments

Comments
 (0)