Skip to content

Commit 65f623e

Browse files
authored
Update compile-sketch.yml
1 parent 12d74e9 commit 65f623e

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

Diff for: .github/workflows/compile-sketch.yml

+10-15
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,13 @@ jobs:
4949
with:
5050
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
5151
- uses: actions/setup-python@v4
52-
- name: Install Platformio
53-
run: |
54-
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
52+
- name: Install PlatformIO Core
53+
run: pip install --upgrade platformio
5554
- name: Install sonar-scanner
5655
uses: SonarSource/sonarcloud-github-c-cpp@v1
5756
- name: Run build-wrapper on ${{ matrix.environment.name }}
5857
run: |
59-
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} ~/.platformio/penv/bin/platformio run -e ${{ matrix.environment.command }}
58+
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} pio run -e ${{ matrix.environment.command }}
6059
env:
6160
PLATFORMIO_BUILD_SRC_FLAGS: -Wdouble-promotion -Wall -Werror
6261
- name: Run sonar-scanner
@@ -72,13 +71,11 @@ jobs:
7271
timeout-minutes: 10
7372
steps:
7473
- uses: actions/checkout@v3
75-
- name: Install Platformio
76-
run: |
77-
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
74+
- name: Install PlatformIO Core
75+
run: pip install --upgrade platformio
7876
- name: Run tests
79-
run: |
80-
~/.platformio/penv/bin/platformio test -e test
81-
77+
run: pio test -e test
78+
8279
static-analysis:
8380
name: Static Analysis
8481
runs-on: ubuntu-latest
@@ -90,9 +87,7 @@ jobs:
9087
- "scales-calibration-stlink"
9188
steps:
9289
- uses: actions/checkout@v3
93-
- name: Install Platformio
94-
run: |
95-
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
90+
- name: Install PlatformIO Core
91+
run: pip install --upgrade platformio
9692
- name: Run static analysis on ${{ matrix.environment }}
97-
run: |
98-
~/.platformio/penv/bin/platformio check -e ${{ matrix.environment }} --fail-on-defect medium --fail-on-defect high
93+
run: pio check -e ${{ matrix.environment }} --fail-on-defect medium --fail-on-defect high

0 commit comments

Comments
 (0)