Skip to content

Local ci fix trials #13

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

Open
wants to merge 5 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
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
17 changes: 8 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -20,8 +21,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
Expand All @@ -34,8 +33,8 @@ jobs:
run: |
west build -p -b arduino_nano_33_ble_sense samples/i2cdemo

- name: Archive firmware
uses: actions/upload-artifact@v2
with:
name: firmware
path: Arduino-Zephyr-API/build/zephyr/zephyr.*
- name: Build adc
working-directory: Arduino-Zephyr-API
run: |
west build -p -b beagleconnect_freedom samples/analog_input

4 changes: 2 additions & 2 deletions .github/workflows/checkpatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/rm-old.yml
Original file line number Diff line number Diff line change
@@ -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' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
# Optional inputs
# skip-tags: true
# skip-recent: 5
Loading