S&B Volcano vaporizer remote control with Pi Pico W
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmake.yml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # https://github.com/raspberrypi/pico-examples/blob/master/.github/workflows/cmake.yml
  2. name: Firmware
  3. on: [push, pull_request]
  4. env:
  5. BUILD_TYPE: Release
  6. jobs:
  7. build:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Install dependencies
  11. run: sudo apt-get install -y cxxtest build-essential gcc-arm-none-eabi mtools
  12. - name: Checkout repo
  13. uses: actions/checkout@v3
  14. with:
  15. path: repo
  16. - name: Checkout repo submodules
  17. working-directory: ${{github.workspace}}/repo
  18. run: git submodule update --init
  19. - name: Checkout pico-sdk submodules
  20. working-directory: ${{github.workspace}}/repo/pico-sdk
  21. run: git submodule update --init
  22. - name: Create Build Environment
  23. working-directory: ${{github.workspace}}/repo
  24. run: cmake -E make_directory ${{github.workspace}}/repo/build
  25. - name: Configure CMake
  26. shell: bash
  27. working-directory: ${{github.workspace}}/repo/build
  28. run: cmake .. -DPICO_BOARD=pico_w -DCMAKE_BUILD_TYPE=$BUILD_TYPE
  29. - name: Get core count
  30. id: core_count
  31. run : cat /proc/cpuinfo | grep processor | wc -l
  32. - name: Build
  33. working-directory: ${{github.workspace}}/repo/build
  34. shell: bash
  35. # Execute the build. You can specify a specific target with "--target <NAME>"
  36. run: cmake --build . --config $BUILD_TYPE --parallel $(nproc)
  37. - name: Upload a Build Artifact
  38. uses: actions/upload-artifact@v4.0.0
  39. with:
  40. name: firmware.uf2
  41. path: ${{github.workspace}}/repo/build/picowota_gadget.uf2
  42. if-no-files-found: error
  43. - name: Upload a Build Artifact
  44. uses: actions/upload-artifact@v4.0.0
  45. with:
  46. name: update.elf
  47. path: ${{github.workspace}}/repo/build/gadget.elf
  48. if-no-files-found: error