@@ -49,14 +49,13 @@ jobs:
49
49
with :
50
50
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
51
51
- 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
55
54
- name : Install sonar-scanner
56
55
uses : SonarSource/sonarcloud-github-c-cpp@v1
57
56
- name : Run build-wrapper on ${{ matrix.environment.name }}
58
57
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 }}
60
59
env :
61
60
PLATFORMIO_BUILD_SRC_FLAGS : -Wdouble-promotion -Wall -Werror
62
61
- name : Run sonar-scanner
@@ -72,13 +71,11 @@ jobs:
72
71
timeout-minutes : 10
73
72
steps :
74
73
- 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
78
76
- name : Run tests
79
- run : |
80
- ~/.platformio/penv/bin/platformio test -e test
81
-
77
+ run : pio test -e test
78
+
82
79
static-analysis :
83
80
name : Static Analysis
84
81
runs-on : ubuntu-latest
90
87
- " scales-calibration-stlink"
91
88
steps :
92
89
- 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
96
92
- 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