Răsfoiți Sursa

Merge pull request #205 from BlueSCSI/eric/actionstest

Fix Github Actions & use build cache
Eric Helgeson 1 an în urmă
părinte
comite
a6a327c6eb
1 a modificat fișierele cu 12 adăugiri și 2 ștergeri
  1. 12 2
      .github/workflows/firmware_build.yml

+ 12 - 2
.github/workflows/firmware_build.yml

@@ -15,15 +15,25 @@ jobs:
         with:
           path: BlueSCSI
           fetch-depth: "0"
+      - uses: actions/cache@v4
+        with:
+          path: |
+            ~/.cache/pip
+            ~/.platformio/.cache
+          key: ${{ runner.os }}-pio
+
+      - uses: actions/setup-python@v5
+        with:
+          python-version: '3.11'
 
       - name: Install platformio
         run: |
-          sudo pip install platformio
+          pip install --upgrade platformio
 
       - name: Build firmware
         run: |
           cd BlueSCSI
-          pio run -v
+          pio run -v -e BlueSCSI_Pico
 
       - name: Rename firmware files
         run: |