Skip to content

Updated wsl cheat sheat #2

Updated wsl cheat sheat

Updated wsl cheat sheat #2

Workflow file for this run

name: CI/CD - MCU
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
types:
- opened
- synchronize
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install tools
run: |
chmod +x .github/workflows/compiler.sh
.github/workflows/compiler.sh
- name: Compile code
run: |
arduino-cli compile -b esp32:esp32:esp32 -o output.bin
- name: Execute tests
run: |
if [ -e "./tests/test_main.cpp" ]; then make all; test_log=$(./build/PlanckUnit); echo "Test log:"; echo "$test_log"; [[ $test_log == *"FAILURE"* ]] && { echo "Test log contains FAILURE. Exiting with code 1."; exit 1; } || { echo "Test log does not contain FAILURE. Continuing."; exit 0; }; fi
- name: Send binary
run: |
curl --fail-with-body --location 'https://up-mongrel-upward.ngrok-free.app/github/binaries/' --form 'repository="${{ github.repository }}"' --form 'sha="${{ github.sha }}"' --form 'binary=@"./output.bin"'