Added build badge #22
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
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 |