Skip to content

joshyattridge is testing modbustcp #14

joshyattridge is testing modbustcp

joshyattridge is testing modbustcp #14

Workflow file for this run

name: test-modbustcp
run-name: ${{ github.actor }} is testing modbustcp
on:
push:
paths-ignore:
- '**/README.md'
jobs:
test-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: list SDK
run: |
ls /opt/venus/current/
- name: test project
run: |
. /opt/venus/current/environment-setup-cortexa8hf-neon-ve-linux-gnueabi
mkdir -p build/test
cd build/test
qmake ../../test/modbustcp_test.pro && make && ./modbustcp_test