diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index 8287185..ee02b1d 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -15,19 +15,23 @@ jobs: name: Compile Firmware runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 - uses: actions/cache@v3 with: path: | ~/.cache/pip ~/.platformio/.cache - key: ${{ runner.os }}-pio + key: compile-cache - uses: actions/setup-python@v4 with: - python-version: '3.9' - - name: Install PlatformIO Core - run: pip install --upgrade platformio + python-version: '3.10' + - name: Install PlatformIO + shell: bash + run: | + python -m pip install --upgrade pip + pip install --upgrade platformio + + - name: Checkout code + uses: actions/checkout@v3 - name: Build PlatformIO Project run: pio run - name: Upload artifacts @@ -84,17 +88,14 @@ jobs: env: PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} steps: - - name: Cache pip + - name: Setup Cache uses: actions/cache@v3 with: - path: ~/.cache/pip - key: pip-cache - - name: Cache PlatformIO - uses: actions/cache@v3 - with: - path: ~/.platformio - key: pio-cache - - name: Set up Python + path: | + ~/.cache/pip + ~/.platformio + key: remote-cache + - name: Setup Python uses: actions/setup-python@v4 with: python-version: '3.10'