Skip to content

Commit

Permalink
remove unused Arduino Pico package index
Browse files Browse the repository at this point in the history
  • Loading branch information
capsulecorplab committed Mar 20, 2024
1 parent 1708791 commit 2251c7a
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@
vars:
arduino_version: "1.8.19"
arduino_cli_version: "0.33.0"
arduino_pico_version: "3.3.0"
arduino_esp32_version: "2.0.9"

tasks:
Expand Down Expand Up @@ -485,16 +484,8 @@
shell: mv /home/kasm-default-profile/install_files/arduino-cli_{{ arduino_cli_version }}/arduino-cli /usr/local/bin
- name: Create arduino workspace directory in /home/kasm-default-profile/.arduino15/ for installing Arduino board libraries
shell: mkdir -p /home /home/kasm-default-profile/.arduino15/
- name: install package_rp2040_index.json for QT Py
get_url:
url: https://github.com/earlephilhower/arduino-pico/releases/download/{{ arduino_pico_version }}/package_rp2040_index.json
dest: /home/kasm-default-profile/.arduino15/
- name: install Arduino-Pico {{ arduino_pico_version }} using arduino-cli
shell: arduino-cli core install rp2040:rp2040@{{ arduino_pico_version }} --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/{{ arduino_pico_version }}/package_rp2040_index.json
- name: Download Arduino-ESP32 {{ arduino_esp32_version }} package index to /home/kasm-default-profile/.arduino15/
shell: wget https://github.com/espressif/arduino-esp32/releases/download/{{ arduino_esp32_version }}/package_esp32_index.json -O /home/kasm-default-profile/.arduino15/package_esp32_index.json
- name: Add Arduino-Pico {{ arduino_pico_version }} package index to /home/kasm-default-profile/.arduino15/preferences.txt
shell: echo "boardsmanager.additional.urls=https://github.com/earlephilhower/arduino-pico/releases/download/{{ arduino_pico_version }}/package_rp2040_index.json" >> /home/kasm-default-profile/.arduino15/preferences.txt
- name: Add Arduino-ESP32 {{ arduino_esp32_version }} package index to /home/kasm-default-profile/.arduino15/preferences.txt
shell: echo "boardsmanager.additional.urls=https://github.com/espressif/arduino-esp32/releases/download/{{ arduino_esp32_version }}/package_esp32_index.json" >> /home/kasm-default-profile/.arduino15/preferences.txt
- name: install Arduino-ESP32 {{ arduino_esp32_version }} using arduino-cli
Expand All @@ -505,9 +496,6 @@
- name: Get Arduino CLI version
shell: arduino-cli version | sed 's/arduino-cli/\n/g' | sed 's/Commit:/\n/g' | grep Version | sed 's/[[:alpha:]|[:space:]]//g' | sed 's/://g'
register: installed_arduino_cli_version
- name: Get Arduino-Pico version
shell: arduino-cli core list | grep rp2040 | awk '{ print $2'}
register: installed_arduino_pico_version
- name: Get Arduino-ESP32 version
shell: arduino-cli core list | grep esp32 | awk '{ print $2'}
register: installed_arduino_esp32_version
Expand All @@ -517,9 +505,6 @@
- name: Display Arduino CLI version
debug:
msg: "Arduino CLI version = {{ installed_arduino_cli_version.stdout }}"
- name: Display Arduino-Pico version
debug:
msg: "Arduino-Pico version = {{ installed_arduino_pico_version.stdout }}"
- name: Display Arduino-ESP32 version
debug:
msg: "Arduino-ESP32 version = {{ installed_arduino_esp32_version.stdout }}"
Expand All @@ -531,10 +516,6 @@
fail:
msg: "Arduino CLI Version Error: Expected {{ arduino_cli_version }} | Found {{ installed_arduino_cli_version.stdout }}"
when: installed_arduino_cli_version.stdout != arduino_cli_version
- name: Test Arduino-Pico version
fail:
msg: "Arduino-Pico Version Error: Expected {{ arduino_pico_version }} | Found {{ installed_arduino_pico_version.stdout }}"
when: installed_arduino_pico_version.stdout != arduino_pico_version
- name: Test Arduino-ESP32 version
fail:
msg: "Arduino-ESP32 Version Error: Expected {{ arduino_esp32_version }} | Found {{ installed_arduino_esp32_version.stdout }}"
Expand Down

0 comments on commit 2251c7a

Please sign in to comment.