Skip to content

Commit

Permalink
fix platformio install sometime failing on GH
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault committed Jan 31, 2025
1 parent 57de417 commit 7011dc7
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
os: [macos-latest, windows-latest, ubuntu-22.04]
steps:
- name: Check out Luos repository
uses: actions/checkout@v3
Expand All @@ -44,26 +44,26 @@ jobs:
# Run Unit tests
platformio test -vvv
- if: matrix.os == 'ubuntu-latest'
- if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get install -y lcov
lcov -d .pio/build/native/ -c -o lcov.info
lcov --remove lcov.info '*/usr/*' '*/Platforms/*' '*/bootloader/*' '*/.pio/*' '*/HAL/*' '*/test/*' '*/network/*' -o lcov.info
lcov --remove lcov.info '*/usr/*' '*/Platforms/*' '*/bootloader/*' '*/.pio/*' '*/HAL/*' '*/test/*' '*/network/*' -o lcov.info --ignore-errors empty
- if: matrix.os == 'ubuntu-latest'
- if: matrix.os == 'ubuntu-22.04'
name: Coveralls
uses: coverallsapp/github-action@v2

unit-tests:
name: Unit tests
needs: tests-run
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- run: echo "Tests succeed!"

code-format:
name: Code format
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Check out Luos repository
uses: actions/checkout@v3
Expand All @@ -89,8 +89,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
project_folders:
[
project_folders: [
examples/projects/l0,
examples/projects/Arduino,
examples/projects/NUCLEO-L432KC,
Expand All @@ -106,7 +105,7 @@ jobs:
# examples/projects/ESP32,
examples/projects/native,
]
os: [macos-latest, windows-latest, ubuntu-latest]
os: [macos-latest, windows-latest, ubuntu-22.04]

steps:
- name: Check out Luos repository
Expand Down Expand Up @@ -152,6 +151,6 @@ jobs:
build-success:
name: Build success
needs: examples-build
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- run: echo "Build succeed!"

0 comments on commit 7011dc7

Please sign in to comment.