Update Workflows and Cmakelists.txt
This commit is contained in:
1 parent
1d08f5a88f
commit
390dd32671
4 files changed
+30
-12
No files matched your search
@@ -26,17 +26,28 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: install build packages
|
||||
run: sudo apt-get update && sudo apt-get install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
|
||||
run: sudo apt-get update && sudo apt-get install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi g++ libstdc++-arm-none-eabi-newlib build-essential
|
||||
|
||||
- name: Get sdk and add PICO_SDK_PATH
|
||||
- name: Get SDK and add PICO_SDK_PATH
|
||||
run: cd /tmp && git clone https://github.com/raspberrypi/pico-sdk.git && echo "PICO_SDK_PATH=/tmp/pico-sdk" >> $GITHUB_ENV
|
||||
|
||||
- name: Configure CMake
|
||||
|
||||
- name: Init submodules to get tinyUSB stack
|
||||
run: git submodule update --init
|
||||
|
||||
- name: Configure and run CMake Rev0.3
|
||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||
run: cmake -B ${{github.workspace}}/Software/build -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||
run: cmake -B ${{github.workspace}}/Software/build-Rev-0_3 -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-Rev-0_3
|
||||
|
||||
- name: Build
|
||||
- name: Build Rev0.3
|
||||
# Build your program with the given configuration
|
||||
run: cmake --build ${{github.workspace}}/Software/build --config ${{env.BUILD_TYPE}}
|
||||
|
||||
run: cmake --build ${{github.workspace}}/Software/build-Rev-0_3 --config ${{env.BUILD_TYPE}}
|
||||
|
||||
- name: Configure and run CMake Rev1.0
|
||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||
run: cmake -B ${{github.workspace}}/Software/build-Rev-1_0 -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-Rev-1_0
|
||||
|
||||
- name: Build Rev1.0
|
||||
# Build your program with the given configuration
|
||||
run: cmake --build ${{github.workspace}}/Software/build-Rev-1_0 --config ${{env.BUILD_TYPE}}
|
||||
Reference in new issue
Block a user