Update workflows

This commit is contained in:
gab-k committed 2025-01-02 17:14:53 +01:00
1 parent 5e72e8538b
commit 5752f277e2
3 files changed
+73 -40

No files matched your search

+4 -4
View File
@@ -34,20 +34,20 @@ jobs:
- name: Init submodules to get tinyUSB stack - name: Init submodules to get tinyUSB stack
run: ls && cd pico-sdk && git submodule update --init && cd .. run: ls && cd pico-sdk && git submodule update --init && cd ..
- name: Configure and run CMake Rev0.3 - name: Configure and run CMake for Hardware Rev 0.3
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # 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 # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_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 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 Rev0.3 - name: Build for Hardware Rev 0.3
# Build your program with the given configuration # Build your program with the given configuration
run: cmake --build ${{github.workspace}}/Software/build-Rev-0_3 --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 - name: Configure and run CMake for Hardware Rev 1.0
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # 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 # 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 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 - name: Build for Hardware Rev 1.0
# Build your program with the given configuration # Build your program with the given configuration
run: cmake --build ${{github.workspace}}/Software/build-Rev-1_0 --config ${{env.BUILD_TYPE}} run: cmake --build ${{github.workspace}}/Software/build-Rev-1_0 --config ${{env.BUILD_TYPE}}
+34 -18
View File
@@ -23,35 +23,55 @@ jobs:
- name: install build packages - name: install build packages
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 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 run: git clone https://github.com/raspberrypi/pico-sdk.git && echo "PICO_SDK_PATH=$GITHUB_WORKSPACE/pico-sdk" >> $GITHUB_ENV
- name: Init submodules to get tinyUSB stack - name: Init submodules to get tinyUSB stack
run: git submodule update --init run: ls && cd pico-sdk && git submodule update --init && cd ..
- name: Configure CMake - name: Configure and run CMake for Hardware Rev 0.3
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # 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 # 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 for Hardware Rev 0.3
# Build your program with the given configuration # 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: Upload build files as artifact - name: Configure and run CMake for Hardware Rev 1.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 for Hardware Rev 1.0
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/Software/build-Rev-1_0 --config ${{env.BUILD_TYPE}}
- name: Upload build files as artifact Rev 0.3
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: build_files name: build_files_Rev-0_3
path: ${{github.workspace}}/Software/build path: ${{github.workspace}}/Software/build-Rev-0_3
- name: Upload build files as artifact Rev 1.0
uses: actions/upload-artifact@v4
with:
name: build_files_Rev-1_0
path: ${{github.workspace}}/Software/build-Rev-1_0
prerelease: prerelease:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
steps: steps:
- name: Download build files artifact - name: Download build files artifact for Rev 0.3
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: build_files name: build_files_Rev-0_3
- name: Download build files artifact for Rev 1.0
uses: actions/download-artifact@v4
with:
name: build_files_Rev-1_0
- name: Release - name: Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
@@ -59,9 +79,5 @@ jobs:
with: with:
prerelease: true prerelease: true
files: | files: |
RP2040-Decoder.bin build_files_Rev-0_3
RP2040-Decoder.dis build_files_Rev-1_0
RP2040-Decoder.elf
RP2040-Decoder.elf.map
RP2040-Decoder.hex
RP2040-Decoder.uf2
+35 -18
View File
@@ -24,44 +24,61 @@ jobs:
- name: install build packages - name: install build packages
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 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 run: git clone https://github.com/raspberrypi/pico-sdk.git && echo "PICO_SDK_PATH=$GITHUB_WORKSPACE/pico-sdk" >> $GITHUB_ENV
- name: Init submodules to get tinyUSB stack - name: Init submodules to get tinyUSB stack
run: git submodule update --init run: ls && cd pico-sdk && git submodule update --init && cd ..
- name: Configure CMake - name: Configure and run CMake for Hardware Rev 0.3
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # 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 # 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 for Hardware Rev 0.3
# Build your program with the given configuration # 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: Upload build files as artifact - name: Configure and run CMake for Hardware Rev 1.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 for Hardware Rev 1.0
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/Software/build-Rev-1_0 --config ${{env.BUILD_TYPE}}
- name: Upload build files as artifact Rev 0.3
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: build_files name: build_files_Rev-0_3
path: ${{github.workspace}}/Software/build path: ${{github.workspace}}/Software/build-Rev-0_3
- name: Upload build files as artifact Rev 1.0
uses: actions/upload-artifact@v4
with:
name: build_files_Rev-1_0
path: ${{github.workspace}}/Software/build-Rev-1_0
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
steps: steps:
- name: Download build files artifact - name: Download build files artifact for Rev 0.3
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: build_files name: build_files_Rev-0_3
- name: Download build files artifact for Rev 1.0
uses: actions/download-artifact@v4
with:
name: build_files_Rev-1_0
- name: Release - name: Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
prerelease: false
files: | files: |
RP2040-Decoder.bin build_files_Rev-0_3
RP2040-Decoder.dis build_files_Rev-1_0
RP2040-Decoder.elf
RP2040-Decoder.elf.map
RP2040-Decoder.hex
RP2040-Decoder.uf2