Skip to content

Updated action to use new mocked libs #21

Updated action to use new mocked libs

Updated action to use new mocked libs #21

Workflow file for this run

name: Build Pi-Summoner
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Cross Compiling Tools
run: sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
- name: Install Dependencies
run: sudo apt-get update && sudo apt-get install -y libmicrohttpd-dev
- name: Run Build Script for Non-RPi Environment
run: |
export NON_RPI_BUILD=1
chmod +x build.sh
./build.sh
- name: List Build Directory Contents
run: ls -l build/
- name: Rename and Move Executable
run: |
mv build/main build/pi-summoner
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: pi-summoner
path: build/pi-summoner