Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/ClemensElflein/OpenM…
Browse files Browse the repository at this point in the history
…ower into development
  • Loading branch information
ClemensElflein committed Aug 8, 2022
2 parents 35c4bae + 2dd3fb6 commit af66297
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 119 deletions.
112 changes: 112 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: CI

on: [push]

jobs:
erc-drc-checks:
runs-on: ubuntu-latest
if: github.ref_type != 'tag'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: INTI-CMNB/KiBot@v2_k6
with:
config: Hardware/OpenMowerMainboard/OpenMowerMainboard.kibot.yaml
board: Hardware/OpenMowerMainboard/OpenMowerMainboard.kicad_pcb
verbose: 1

firmware:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- name: Set up Python
uses: actions/setup-python@v2
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Run PlatformIO
run: pio run -d Firmware/LowLevel
- name: Copy Artifacts
run: |
mkdir artifacts
mkdir ./artifacts/ELFLEIN_PROTOTYPE
cp Firmware/LowLevel/.pio/build/ELFLEIN_PROTOTYPE/firmware.bin ./artifacts/ELFLEIN_PROTOTYPE
cp Firmware/LowLevel/.pio/build/ELFLEIN_PROTOTYPE/firmware.uf2 ./artifacts/ELFLEIN_PROTOTYPE
mkdir ./artifacts/MPU9250
cp Firmware/LowLevel/.pio/build/MPU9250/firmware.bin ./artifacts/MPU9250
cp Firmware/LowLevel/.pio/build/MPU9250/firmware.uf2 ./artifacts/MPU9250
mkdir ./artifacts/WT901_INSTEAD_OF_SOUND
cp Firmware/LowLevel/.pio/build/WT901_INSTEAD_OF_SOUND/firmware.bin ./artifacts/WT901_INSTEAD_OF_SOUND
cp Firmware/LowLevel/.pio/build/WT901_INSTEAD_OF_SOUND/firmware.uf2 ./artifacts/WT901_INSTEAD_OF_SOUND
- name: Step 3 - Use the Upload Artifact GitHub Action
uses: actions/upload-artifact@v3
with:
name: open-mower-pico-firmware
path: artifacts/

tagged-release:
runs-on: ubuntu-latest
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
needs: firmware
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: INTI-CMNB/KiBot@v2_k6
with:
config: Hardware/OpenMowerMainboard/OpenMowerMainboard.kibot.yaml
board: Hardware/OpenMowerMainboard/OpenMowerMainboard.kicad_pcb
skip: run_drc,run_erc

- name: 'Fix permissions on release/'
run: sudo chmod 0777 release

- uses: actions/download-artifact@v3
with:
name: open-mower-pico-firmware
path: firmware

- name: Create firmware zip
run: zip -r release/firmware.zip firmware

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: release/*

- name: Deploy release
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: release
destination_dir: release

- name: Deploy release_navigator
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: release_navigator
destination_dir: release_navigator
keep_files: true

- name: Deploy release_navigator index
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: release_navigator
keep_files: true
17 changes: 0 additions & 17 deletions .github/workflows/kibot-commit-check.yaml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/kibot-release-from-tag.yaml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/platformio-build-firmware.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions Firmware/LowLevel/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ debug_port = tcp:ubuntu.local:3333
; 133MHz
board_build.f_cpu = 133000000L

; note that download link for toolchain is specific for OS. see https://github.com/earlephilhower/pico-quick-toolchain/releases.
platform_packages =
maxgerhardt/framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
maxgerhardt/toolchain-pico@https://github.com/earlephilhower/pico-quick-toolchain/releases/download/1.3.3-a/x86_64-linux-gnu.arm-none-eabi-ed6d983.220212.tar.gz
; maxgerhardt/toolchain-pico@https://github.com/earlephilhower/pico-quick-toolchain/releases/download/1.3.1-a/x86_64-w64-mingw32.arm-none-eabi-7855b0c.210706.zip

; needed so that tinyusb is not added to dependency list (we don't want to use it.)
lib_ldf_mode = off
debug_build_flags = -O0 -g -ggdb
Expand Down

0 comments on commit af66297

Please sign in to comment.