Fixed device object compile errors and added IPv6 recipes for blinkt and piface (#841)
This commit is contained in:
+81
-18
@@ -20,10 +20,10 @@ on:
|
||||
description: 'Environment to run tests against'
|
||||
type: environment
|
||||
required: true
|
||||
|
||||
|
||||
jobs:
|
||||
log-the-inputs:
|
||||
runs-on: raspios/base:latest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: |
|
||||
echo "Log level: $LEVEL"
|
||||
@@ -32,44 +32,107 @@ jobs:
|
||||
env:
|
||||
LEVEL: ${{ inputs.logLevel }}
|
||||
TAGS: ${{ inputs.tags }}
|
||||
ENVIRONMENT: ${{ inputs.environment }}
|
||||
|
||||
ENVIRONMENT: ${{ inputs.environment }}
|
||||
|
||||
raspi-bip-apps:
|
||||
runs-on: raspios/base:latest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Create Build Environment
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -qq libconfig-dev
|
||||
sudo apt-get install -qq gcc-arm-linux-gnueabihf
|
||||
- name: Build Demo Apps
|
||||
run: |
|
||||
gcc --version
|
||||
export CC=arm-linux-gnueabihf-gcc
|
||||
export LD=arm-linux-gnueabihf-ld
|
||||
arm-linux-gnueabihf-gcc --version
|
||||
make clean
|
||||
make all
|
||||
make LEGACY=true all
|
||||
|
||||
piface:
|
||||
runs-on: raspios/base:latest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Checkout libmcp23s17 repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: piface/libmcp23s17
|
||||
path: ./apps/piface/libmcp23s17
|
||||
|
||||
- name: Checkout libpifacedigital repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: piface/libpifacedigital
|
||||
path: ./apps/piface/libpifacedigital
|
||||
|
||||
- name: Create Build Environment
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
- name: Build Demo Apps
|
||||
sudo apt-get install -qq gcc-arm-linux-gnueabihf
|
||||
|
||||
- name: Build libmcp23s17 library
|
||||
run: |
|
||||
gcc --version
|
||||
cd apps/piface && ./configure && cd ../../
|
||||
arm-linux-gnueabihf-gcc --version
|
||||
cd apps/piface/libmcp23s17
|
||||
make CC=arm-linux-gnueabihf-gcc
|
||||
arm-linux-gnueabihf-ar rcs libmcp23s17.a src/mcp23s17.o
|
||||
cd ../../../
|
||||
|
||||
- name: Build pifacedigital library
|
||||
run: |
|
||||
arm-linux-gnueabihf-gcc --version
|
||||
cd apps/piface/libpifacedigital
|
||||
make CC=arm-linux-gnueabihf-gcc
|
||||
: # Use the arm-linux-gnueabihf-ar command to create a static library
|
||||
arm-linux-gnueabihf-ar rcs libpifacedigital.a src/pifacedigital.o
|
||||
cd ../../../
|
||||
|
||||
- name: Build Piface demo
|
||||
run: |
|
||||
arm-linux-gnueabihf-gcc --version
|
||||
: # BACnet library uses environment CC and LD variables
|
||||
CC=arm-linux-gnueabihf-gcc
|
||||
LD=arm-linux-gnueabihf-ld
|
||||
CROSS_PREFIX=arm-linux-gnueabihf-
|
||||
make piface
|
||||
|
||||
blinkt:
|
||||
runs-on: raspios/base:latest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Checkout pigpio repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: joan2937/pigpio
|
||||
path: ./apps/blinkt/pigpio
|
||||
|
||||
- name: Create Build Environment
|
||||
run: |
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -qq libpigpio-dev libpigpiod-if-dev pigpiod
|
||||
- name: Build Demo Apps
|
||||
sudo apt-get install -qq gcc-arm-linux-gnueabihf
|
||||
|
||||
- name: Build Blinkt! pigpio library
|
||||
run: |
|
||||
gcc --version
|
||||
arm-linux-gnueabihf-gcc --version
|
||||
CROSS_PREFIX=arm-linux-gnueabihf-
|
||||
DESTDIR="${HOME}/.local/bin"
|
||||
cd apps/binkt/pigpio
|
||||
make CROSS_PREFIX="${CROSS_PREFIX}" DESTDIR="${DESTDIR}" all install
|
||||
cd ../../../
|
||||
|
||||
- name: Build Blinkt! demo
|
||||
run: |
|
||||
arm-linux-gnueabihf-gcc --version
|
||||
: # BACnet library uses environment CC and LD variables
|
||||
export CC=arm-linux-gnueabihf-gcc
|
||||
export LD=arm-linux-gnueabihf-ld
|
||||
export CROSS_PREFIX=arm-linux-gnueabihf-
|
||||
make blinkt
|
||||
|
||||
Reference in New Issue
Block a user