Skip to content

Hopefully fix CI/CD #17

Hopefully fix CI/CD

Hopefully fix CI/CD #17

Workflow file for this run

name: Build SerialReader
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [armv7l, aarch64]
include:
- arch: armv7l
cpu: cortex-a53
base_image: raspios_lite:latest
cpu_info: cpuinfo/raspberrypi_3b
- arch: aarch64
cpu: cortex-a7
base_image: raspios_lite_arm64:latest
cpu_info: cpuinfo/raspberrypi_4b
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: pguyot/arm-runner-action@v2
with:
base_image: ${{ matrix.base_image }}
cpu: ${{ matrix.cpu }}
cpu_info: ${{ matrix.cpu_info }}
copy_artifact_path: SerialReader/SerialReader;SerialReader/libSerialReader.so
copy_artifact_dest: ./SerialReader
image_additional_mb: 1024
commands: |
apt update
apt install --no-install-recommends -y cmake make g++ default-jdk libgpiod-dev git
git clone https://github.com/Taywee/args.git
cd args
sudo make -j4 install DESTDIR=/usr
cd ..
cd SerialReader
cmake .
make -j4
chmod +x SerialReader
cd ..
- name: Upload SerialReader
uses: actions/upload-artifact@v4
with:
name: SerialReader-${{ matrix.arch }}
path: |
SerialReader/libSerialReader.so
SerialReader/SerialReader