Skip to content

Commit

Permalink
Update compile-sketch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0-bit committed Oct 19, 2023
1 parent 12d74e9 commit 65f623e
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/compile-sketch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,13 @@ jobs:
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-python@v4
- name: Install Platformio
run: |
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Install sonar-scanner
uses: SonarSource/sonarcloud-github-c-cpp@v1
- name: Run build-wrapper on ${{ matrix.environment.name }}
run: |
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} ~/.platformio/penv/bin/platformio run -e ${{ matrix.environment.command }}
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} pio run -e ${{ matrix.environment.command }}
env:
PLATFORMIO_BUILD_SRC_FLAGS: -Wdouble-promotion -Wall -Werror
- name: Run sonar-scanner
Expand All @@ -72,13 +71,11 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Install Platformio
run: |
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Run tests
run: |
~/.platformio/penv/bin/platformio test -e test
run: pio test -e test

static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
Expand All @@ -90,9 +87,7 @@ jobs:
- "scales-calibration-stlink"
steps:
- uses: actions/checkout@v3
- name: Install Platformio
run: |
python3 -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Run static analysis on ${{ matrix.environment }}
run: |
~/.platformio/penv/bin/platformio check -e ${{ matrix.environment }} --fail-on-defect medium --fail-on-defect high
run: pio check -e ${{ matrix.environment }} --fail-on-defect medium --fail-on-defect high

0 comments on commit 65f623e

Please sign in to comment.