Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install utilities as part of OSHW tools #53

Merged
merged 2 commits into from
Oct 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 5 additions & 20 deletions playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
- install_doctools
- install_plantuml
- install_avr_build_tools
- install_oshw_tools

tasks:
- name: Install build-essential
Expand Down Expand Up @@ -94,6 +95,7 @@
gather_facts: yes
tags:
- install_avr_build_tools
- install_oshw_tools
- install_doctools
- install_utilities

Expand Down Expand Up @@ -394,7 +396,6 @@
vars:
arduino_version: "1.8.19"
arduino_cli_version: "0.33.0"
megatinycore_version: "2.6.8"
arduino_pico_version: "3.3.0"
arduino_esp32_version: "2.0.9"

Expand Down Expand Up @@ -428,22 +429,14 @@
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_drazzy.com_index.json for megaTinyCore
get_url:
url: http://drazzy.com/package_drazzy.com_index.json
dest: /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 megatinycore {{ megatinycore_version }} using arduino-cli
shell: arduino-cli core install megaTinyCore:megaavr@{{ megatinycore_version }} --additional-urls http://drazzy.com/package_drazzy.com_index.json
- 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 megatinycore {{ megatinycore_version }} package index to /home/kasm-default-profile/.arduino15/preferences.txt
shell: echo "boardsmanager.additional.urls=http://drazzy.com/package_drazzy.com_index.json" >> /home/kasm-default-profile/.arduino15/preferences.txt
- 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
Expand All @@ -456,9 +449,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 megaTinyCore version
shell: arduino-cli core list | grep megaTinyCore | awk '{ print $2'}
register: installed_megatinycore_version
- name: Get Arduino-Pico version
shell: arduino-cli core list | grep rp2040 | awk '{ print $2'}
register: installed_arduino_pico_version
Expand All @@ -471,9 +461,6 @@
- name: Display Arduino CLI version
debug:
msg: "Arduino CLI version = {{ installed_arduino_cli_version.stdout }}"
- name: Display megaTinyCore version
debug:
msg: "megaTinyCore version = {{ installed_megatinycore_version.stdout }}"
- name: Display Arduino-Pico version
debug:
msg: "Arduino-Pico version = {{ installed_arduino_pico_version.stdout }}"
Expand All @@ -488,10 +475,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 megaTinyCore version
fail:
msg: "megaTinyCore Version Error: Expected {{ megatinycore_version }} | Found {{ installed_megatinycore_version.stdout }}"
when: installed_megatinycore_version.stdout != megatinycore_version
- name: Test Arduino-Pico version
fail:
msg: "Arduino-Pico Version Error: Expected {{ arduino_pico_version }} | Found {{ installed_arduino_pico_version.stdout }}"
Expand Down Expand Up @@ -539,7 +522,9 @@
hosts: localhost
connection: local
gather_facts: yes
tags: install_utilities
tags:
- install_utilities
- install_oshw_tools

vars:
git_version: "2.42.0"
Expand Down
Loading