From a359647c21133209610d3b62828f6919aa12b0ec Mon Sep 17 00:00:00 2001 From: R4SAS Date: Mon, 10 Oct 2022 16:21:28 +0300 Subject: [PATCH] [gha] rpi build tests Signed-off-by: R4SAS --- .github/workflows/build-rpi.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build-rpi.yml diff --git a/.github/workflows/build-rpi.yml b/.github/workflows/build-rpi.yml new file mode 100644 index 00000000..19a39095 --- /dev/null +++ b/.github/workflows/build-rpi.yml @@ -0,0 +1,36 @@ +name: Build on raspbian/raspios + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + arch: [armv6l, armv7l, aarch64] + include: + - arch: armv6l + cpu: arm1176 + base_image: raspios_lite:latest + cpu_info: cpuinfo/raspberrypi_zero_w + - arch: armv7l + cpu: cortex-a7 + base_image: raspios_lite:latest + cpu_info: cpuinfo/raspberrypi_zero2_w + - arch: aarch64 + cpu: cortex-a53 + base_image: raspios_lite_arm64:latest + cpu_info: cpuinfo/raspberrypi_zero2_w_arm64 + steps: + - uses: pguyot/arm-runner-action@v2 + with: + base_image: ${{ matrix.base_image }} + cpu: ${{ matrix.cpu }} + cpu_info: ${{ matrix.cpu_info }} + copy_repository_path: /usr/src/i2pd + commands: | + apt-get update -y --allow-releaseinfo-change + apt-get install --no-install-recommends -y build-essential libboost-dev libminiupnpc-dev libssl-dev zlib1g-dev + cd /usr/src/i2pd + make DEBUG=no USE_GIT_VERSION=yes -j`nproc`