-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 983 Bytes
/
c-cpp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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