浏览代码

Merge pull request #205 from BlueSCSI/eric/actionstest

Fix Github Actions & use build cache
Eric Helgeson 1 年之前
父节点
当前提交
a6a327c6eb
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 12 2
      .github/workflows/firmware_build.yml

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

@@ -15,15 +15,25 @@ jobs:
         with:
         with:
           path: BlueSCSI
           path: BlueSCSI
           fetch-depth: "0"
           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
       - name: Install platformio
         run: |
         run: |
-          sudo pip install platformio
+          pip install --upgrade platformio
 
 
       - name: Build firmware
       - name: Build firmware
         run: |
         run: |
           cd BlueSCSI
           cd BlueSCSI
-          pio run -v
+          pio run -v -e BlueSCSI_Pico
 
 
       - name: Rename firmware files
       - name: Rename firmware files
         run: |
         run: |