Skip to content

Commit e000e85

Browse files
committed
update picoruby and improve CI workflow
- Update picoruby submodule to latest version - Improve CI workflow with better step organization and error handling - Lower CMake minimum version requirement from 3.24 to 3.22 for better compatibility - Now act shoud work on your local computer
1 parent 81fbdce commit e000e85

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,26 @@ jobs:
1616
with:
1717
submodules: 'recursive'
1818
fetch-tags: true
19-
- run: |
19+
- name: Install dependencies
20+
run: |
21+
sudo apt update
2022
sudo apt remove man-db
2123
sudo apt install -y cmake ruby gcc-arm-none-eabi npm
24+
- name: Update pico-sdk
25+
run: |
2226
pushd lib/pico-sdk
2327
git fetch origin --tags --recurse-submodules=no
28+
git submodule update --init lib/tinyusb
2429
popd
30+
- name: Update pico-extras
31+
run: |
2532
pushd lib/pico-extras
2633
git fetch origin --tags --recurse-submodules=no
2734
popd
35+
- name: Setup rp2040js
36+
run: |
2837
pushd lib/rp2040js
29-
git apply < ../../.github/workflows/rp2040js.patch
38+
git apply < ../../.github/workflows/rp2040js.patch || echo "Patch may already be applied"
3039
npm install
3140
popd
3241
- run: rake mrubyc:pico:debug

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.24)
1+
cmake_minimum_required(VERSION 3.22)
22

33
#set(CMAKE_VERBOSE_MAKEFILE ON)
44

lib/picoruby

0 commit comments

Comments
 (0)