From 20437234f9a05abbb6eeabe24243c3dd5e4ad29f Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Sun, 23 Jun 2024 22:09:02 +0800 Subject: [PATCH] Picoware CI build workflow pipeline. --- .github/workflows/picoware_ci.yml | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/picoware_ci.yml diff --git a/.github/workflows/picoware_ci.yml b/.github/workflows/picoware_ci.yml new file mode 100644 index 0000000..2e2e787 --- /dev/null +++ b/.github/workflows/picoware_ci.yml @@ -0,0 +1,32 @@ +name: Picoware CI + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./picoware + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Arduino CLI + uses: arduino/setup-arduino-cli@v1 + + - name: Arduino CLI Core Index Update + run: | + arduino-cli config init + arduino-cli core update-index + + - name: Arduino RP2040 Platform Installation + run: arduino-cli core install rp2040:rp2040 --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json + + - name: Picoware for RP2040 + run: | + arduino-cli compile --fqbn rp2040:rp2040:rpipico:opt=Optimize3 picoware.ino