Skip to content

Commit

Permalink
[arduino] Fix DxCore package manager URL
Browse files Browse the repository at this point in the history
  • Loading branch information
tgtakaoka committed Nov 2, 2024
1 parent 66861f1 commit bfeed10
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/arduino-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
- vendor: MightyCore
arch: avr
name: 1284
# - vendor: DxCore
# arch: megaavr
# name: avrda
- vendor: DxCore
arch: megaavr
name: avrda
- vendor: teensy
arch: avr
name: teensy41
Expand All @@ -41,18 +41,21 @@ jobs:
board:
vendor: MightyCore
# - index: https://drazzy.com/package_drazzy.com_index.json
# board:
# vendor: DxCore
- index: https://descartes.net/package_drazzy.com_index.json
board:
vendor: DxCore
- index: https://www.pjrc.com/teensy/package_teensy_index.json
board:
vendor: teensy
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Arduino CLI
uses: arduino/setup-arduio-cli@v2
- name: Compile examples
uses: arduino/compile-sketches@v1
with:
cli-version: "0.33.0"
cli-version: "1.0.4"
fqbn: ${{matrix.board.vendor}}:${{matrix.board.arch}}:${{matrix.board.name}}
platforms: |
- source-url: ${{matrix.index}}
Expand Down
7 changes: 4 additions & 3 deletions examples/install-arduino-cli.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/bin/bash

version=0.33.0
export BINDIR=${HOME}/.local/bin
echo "rm -f ${BINDIR}/arduino-cli"
rm -f ${BINDIR}/arduino-cli

which arduino-cli || {
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh -s ${version}
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
hash -r
}
test -f ${HOME}/.arduino15/arduino-cli.yaml || arduino-cli config init

arduino-cli config add board_manager.additional_urls https://mcudude.github.io/MightyCore/package_MCUdude_MightyCore_index.json
arduino-cli config add board_manager.additional_urls https://drazzy.com/package_drazzy.com_index.json
# arduino-cli config add board_manager.additional_urls http://drazzy.com/package_drazzy.com_index.json
arduino-cli config add board_manager.additional_urls https://descartes.net/package_drazzy.com_index.json
arduino-cli config add board_manager.additional_urls https://www.pjrc.com/teensy/package_teensy_index.json
arduino-cli core update-index

Expand Down

0 comments on commit bfeed10

Please sign in to comment.