Skip to content

Commit

Permalink
ci: Try alternative method of installing board definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
redmushie committed Oct 1, 2023
1 parent 2a0b1a5 commit 4ec52dd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,13 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Install board definition overrides
run: |
mkdir -p ~/.platformio/boards
find boards/ | grep board.json | sed -r -n 's|./([-a-zA-Z0-9\\-]*)/board.json|\0\n~/.platformio/boards/\1.json|p' | xargs -n 2 mv
# - name: Install board definition overrides
# run: |
# mkdir -p ~/.platformio/boards
# find boards/ | grep board.json | sed -r -n 's|./([-a-zA-Z0-9\\-]*)/board.json|\0\n~/.platformio/boards/\1.json|p' | xargs -n 2 mv

- name: Install requested board override
run: mkdir -p ~/.platformio/boards && cp ./boards/${{ matrix.board }}/board.json ~/.platformio/boards/${{ matrix.board }}.json

- name: Build firmware
run: pio run -e ${{ matrix.board }}
Expand Down

0 comments on commit 4ec52dd

Please sign in to comment.