Skip to content

Commit

Permalink
Different way to install dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Jan 12, 2024
1 parent 95a74a6 commit 980e8ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-cores.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ jobs:
with:
submodules: recursive

- name: Install Dependencies
- name: Install Python Dependencies
run: |
apt-get update
xargs apt-get install -y < mbed-os/tools/requirements.apt.txt
# Note: The Mbed container is too old to have python3-json5, but it's old enough that we can
# still install python packages globally.
# On newer Ubuntu versions, you would instead use:
# apt-get update
# xargs apt-get install -y < mbed-os/tools/requirements.apt.txt
python3 -m pip install -r mbed-os/tools/requirements.txt
- name: Build
run: |
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ add_subdirectory(libraries)
# Set up packaging. We want CMake to build a zip file containing the core.
set(CPACK_PACKAGE_NAME "ArduinoCore-mbed-ce-${ARDUINO_VARIANT_NAME}-${CMAKE_BUILD_TYPE}")
set(CPACK_PACKAGE_VERSION ${ArduinoCore-mbed-ce_VERSION})
set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION})

include(CPack)

Expand Down

0 comments on commit 980e8ca

Please sign in to comment.