only set --break-system-packages as environment to be compatible with older versions

This commit is contained in:
andreas 2024-10-11 15:51:05 +02:00
parent 38d56f1c57
commit 5cb8bdd8c7
2 changed files with 7 additions and 2 deletions

View File

@ -10,6 +10,8 @@ jobs:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
PIP_BREAK_SYSTEM_PACKAGES:1
steps:
- uses: actions/checkout@v2
with:
@ -17,8 +19,8 @@ jobs:
- name: Install deps
run: |
#apt-get install -y python3-pip
python3 -m pip install --upgrade pip --break-system-packages
pip install -U platformio --break-system-packages
python3 -m pip install --upgrade pip
pip install -U platformio
- name: Build
run: |
pio run

View File

@ -18,6 +18,9 @@ jobs:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
PIP_BREAK_SYSTEM_PACKAGES:1
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it