diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml new file mode 100644 index 00000000..5d0e3d80 --- /dev/null +++ b/.github/workflows/arduino.yml @@ -0,0 +1,52 @@ +name: Arduino Build + +on: + push: + branches: [arduino] + + +jobs: + test-matrix: + strategy: + matrix: + arduino-platform: ["rp2040:rp2040"] + include: + - arduino-platform: "rp2040:rp2040" + fqbn: "rp2040:rp2040:rpipico" + + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + + - name: Run PWD + run: pwd + + - name: Install Arduino-cli + run: curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh + + - name: Install platform + run: | + export PATH="${{ github.workspace }}/bin:$PATH" + arduino-cli config add board_manager.additional_urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json + arduino-cli core update-index + arduino-cli core install ${{ matrix.arduino-platform }} + + - name: TestArduinoFile + working-directory: ./source/arduino + run: | + export PATH="${{ github.workspace }}/bin:$PATH" + files=$(ls ../../demo/arduino/) + echo "Files in the folder:" + echo "$files" + + for file in $files; do + echo "Processing and Testing Arduino Sketch: $file" + cp ../../demo/arduino/$file/$file.ino ./arduino.ino + arduino-cli compile --fqbn rp2040:rp2040:rpipico ./arduino.ino + rm ./arduino.ino + done + + + diff --git a/source/arduino/keywords.txt b/source/arduino/keywords.txt new file mode 100644 index 00000000..4a808130 --- /dev/null +++ b/source/arduino/keywords.txt @@ -0,0 +1,28 @@ +####################################### +# Syntax Coloring Map For ExampleLibrary +####################################### + +####################################### +# Datatypes (KEYWORD1) +####################################### + +ASTRONOMY KEYWORD1 + +####################################### +# Methods and Functions (KEYWORD2) +####################################### + +argvs KEYWORD2 +ParseArgs KEYWORD2 + + +####################################### +# Instances (KEYWORD2) +####################################### + +####################################### +# Constants (LITERAL1) +####################################### + +Astronomy_ObserverGravity LITERAL1 +Astronomy_ObserverGravity1 LITERAL1 diff --git a/source/arduino/library.properties b/source/arduino/library.properties new file mode 100644 index 00000000..b592560b --- /dev/null +++ b/source/arduino/library.properties @@ -0,0 +1,10 @@ +name=ASTRONOMYENGINE +version=1.0 +author=cosinekitty,DannyRavi +maintainer=cosinekitty,DannyRavi +sentence=Astronomy Engine library +paragraph=Library to Astronomy engine +category=Others +url=https://github.com/dannyravi/astronomy +architectures=rpi2040 +includes=astronomy.h,astro_demo_common.h