From f487016caacef8ff3b8b6d4c7dccf5a263d68d84 Mon Sep 17 00:00:00 2001 From: Dhruva Gole Date: Sat, 3 Aug 2024 22:32:48 +0530 Subject: [PATCH 1/5] github: workflows: checkpatch: Run on next as well Include next branch as well so checkpatch runs on all PRs Signed-off-by: Dhruva Gole --- .github/workflows/checkpatch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/checkpatch.yml b/.github/workflows/checkpatch.yml index c3cba500..41e2f69b 100644 --- a/.github/workflows/checkpatch.yml +++ b/.github/workflows/checkpatch.yml @@ -6,9 +6,9 @@ name: checkpatch review on: # Triggers the workflow on push or pull request events but only for the "main" branch push: - branches: [ "main" ] + branches: [ "main", "next" ] pull_request: - branches: [ "main" ] + branches: [ "main", "next" ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: From ddc838dda870dc86f3a426cc5aa62bf490ae1596 Mon Sep 17 00:00:00 2001 From: Dhruva Gole Date: Sat, 3 Aug 2024 22:35:07 +0530 Subject: [PATCH 2/5] github: workflows: Avoid commenting WCharacter Also, add support for testing BCF with Analog input sample Signed-off-by: Dhruva Gole --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d30661c..f485bf6e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,8 +20,6 @@ jobs: west init -m https://github.com/zephyrproject-rtos/gsoc-2022-arduino-core.git west update git clone https://github.com/arduino/ArduinoCore-API.git ArduinoCore-API - sed '/WCharacter.h/ s/./\/\/ &/' ArduinoCore-API/api/ArduinoAPI.h > ArduinoCore-API/api/tmpArduinoAPI.h - mv ArduinoCore-API/api/tmpArduinoAPI.h ArduinoCore-API/api/ArduinoAPI.h cp -r ArduinoCore-API/api modules/lib/Arduino-Zephyr-API/cores/arduino/. - name: Build fade @@ -34,6 +32,11 @@ jobs: run: | west build -p -b arduino_nano_33_ble_sense samples/i2cdemo + - name: Build adc + working-directory: Arduino-Zephyr-API + run: | + west build -p -b beagleconnect_freedom samples/analog_input + - name: Archive firmware uses: actions/upload-artifact@v2 with: From 199ecbc6bce1e4e5f87adbe10ecc821f31072b08 Mon Sep 17 00:00:00 2001 From: Dhruva Gole Date: Tue, 6 Aug 2024 17:45:20 +0530 Subject: [PATCH 3/5] test ci Signed-off-by: Dhruva Gole --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f485bf6e..2bdaec64 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,8 +4,9 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest - container: zephyrprojectrtos/ci:latest + runs-on: ubuntu-22.04 + container: + image: ghcr.io/zephyrproject-rtos/ci:latest env: CMAKE_PREFIX_PATH: /opt/toolchains steps: From be4cc8ee2478e5c528be1def13ae9eb736512222 Mon Sep 17 00:00:00 2001 From: Dhruva Gole Date: Tue, 6 Aug 2024 18:27:35 +0530 Subject: [PATCH 4/5] remove old artifacts Signed-off-by: Dhruva Gole --- .github/workflows/rm-old.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/rm-old.yml diff --git a/.github/workflows/rm-old.yml b/.github/workflows/rm-old.yml new file mode 100644 index 00000000..6a906d30 --- /dev/null +++ b/.github/workflows/rm-old.yml @@ -0,0 +1,21 @@ +name: Remove old artifacts + +on: + push: + branches: [ "main", "next" ] + pull_request: + branches: [ "main", "next" ] + +jobs: + remove-old-artifacts: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Remove old artifacts + uses: c-hive/gha-remove-artifacts@v1 + with: + age: '2 days' # ' ', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js + # Optional inputs + # skip-tags: true + # skip-recent: 5 From 4e87852b64470aa90c4576e72ee8ecf3ffd510a5 Mon Sep 17 00:00:00 2001 From: Dhruva Gole Date: Tue, 6 Aug 2024 18:30:15 +0530 Subject: [PATCH 5/5] stop archiving firmwares Signed-off-by: Dhruva Gole --- .github/workflows/build.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2bdaec64..7ab10e56 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,8 +38,3 @@ jobs: run: | west build -p -b beagleconnect_freedom samples/analog_input - - name: Archive firmware - uses: actions/upload-artifact@v2 - with: - name: firmware - path: Arduino-Zephyr-API/build/zephyr/zephyr.*