-
-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' of https://github.com/ClemensElflein/OpenM…
…ower into development
- Loading branch information
Showing
5 changed files
with
112 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters