소스 검색

nth time's the charm

Jariullah Safi 4 달 전
부모
커밋
c34d46f614
2개의 변경된 파일과 4개의 추가작업 그리고 9개의 파일을 삭제
  1. 1 6
      .github/workflows/build.yml
  2. 3 3
      docs/BUILD_AND_DEPLOY.md

+ 1 - 6
.github/workflows/build.yml

@@ -11,10 +11,6 @@ jobs:
     steps:
       - name: Check out repository
         uses: actions/checkout@v4
-        with:
-          # arduino-cli requires the main .ino to match its folder name; the repo
-          # checks out lowercase by default, so place it in a folder named OpenPuck.
-          path: OpenPuck
 
       - name: Set up Arduino CLI
         uses: arduino/setup-arduino-cli@v2
@@ -27,9 +23,8 @@ jobs:
           arduino-cli core install adafruit:nrf52
 
       - name: Compile OpenPuck
-        working-directory: OpenPuck
         run: |
           arduino-cli compile \
             -b adafruit:nrf52:feather52840 \
             --build-property "build.extra_flags=-DNRF52840_XXAA {build.flags.usb} -DCFG_TUD_HID=4" \
-            .
+            OpenPuck

+ 3 - 3
docs/BUILD_AND_DEPLOY.md

@@ -60,7 +60,7 @@ From the repository root:
 arduino-cli compile \
   -b adafruit:nrf52:feather52840 \
   --build-property "build.extra_flags=-DNRF52840_XXAA {build.flags.usb} -DCFG_TUD_HID=4" \
-  .
+  OpenPuck
 ```
 
 This sketch requires `CFG_TUD_HID=4` because Steam mode exposes four HID interfaces.
@@ -81,7 +81,7 @@ Upload:
 arduino-cli upload \
   -b adafruit:nrf52:feather52840 \
   -p /dev/ttyACM0 \
-  .
+  OpenPuck
 ```
 
 Replace `/dev/ttyACM0` with the actual port. On macOS it is usually `/dev/cu.usbmodem*`.
@@ -100,7 +100,7 @@ Upload:
 arduino-cli upload `
   -b adafruit:nrf52:feather52840 `
   -p COM5 `
-  .
+  OpenPuck
 ```
 
 Replace `COM5` with the actual board port.