Skip to content

joshyattridge is building modbustcp #6

joshyattridge is building modbustcp

joshyattridge is building modbustcp #6

Workflow file for this run

name: build-modbustcp
run-name: ${{ github.actor }} is building modbustcp
on:
push:
paths-ignore:
- '**/README.md'
jobs:
build-modbustcp:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
os: [ubuntu-latest]
architecture: [x86_64]
steps:
- uses: actions/checkout@v2
- name: Check Architecture
run: |
if [[ "${{ matrix.architecture }}" != "x86_64" ]]; then
echo "Unsupported architecture. Exiting..."
exit 1
fi
- name: Download & Install SDK
run: |
wget https://updates.victronenergy.com/feeds/venus/release/sdk/venus-dunfell-x86_64-arm-cortexa8hf-neon-toolchain-v3.13.sh
chmod u+x venus-dunfell-x86_64-arm-cortexa8hf-neon-toolchain-v3.13.sh
sudo ./venus-dunfell-x86_64-arm-cortexa8hf-neon-toolchain-v3.13.sh -y
mkdir -p /opt/venus/current
sudo ln -s /opt/venus/dunfell-arm-cortexa8hf-neon/* /opt/venus/current/
- name: build project
run: |
. /opt/venus/current/environment-setup-cortexa8hf-neon-ve-linux-gnueabi
mkdir -p build/dbus-modbustcp
cd build/dbus-modbustcp
qmake ../../dbus_modbustcp.pro && make
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: dbus-modbustcp
path: build/dbus-modbustcp/dbus-modbustcp