From 37fafe5f1af1cfb27169ea94acad6d4dcae1a093 Mon Sep 17 00:00:00 2001 From: Ryan Mast Date: Fri, 28 Feb 2020 21:00:03 -0800 Subject: [PATCH] Add ARM builds on Drone CI --- .ci/unix-build.sh | 4 ++++ .ci/unix-test.sh | 6 ++++++ .drone.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100755 .ci/unix-build.sh create mode 100755 .ci/unix-test.sh create mode 100644 .drone.yml diff --git a/.ci/unix-build.sh b/.ci/unix-build.sh new file mode 100755 index 0000000..914befa --- /dev/null +++ b/.ci/unix-build.sh @@ -0,0 +1,4 @@ +#!/bin/sh +mkdir build && cd build +cmake -DCMAKE_BUILD_TYPE=Release .. +cmake --build . diff --git a/.ci/unix-test.sh b/.ci/unix-test.sh new file mode 100755 index 0000000..3d6c865 --- /dev/null +++ b/.ci/unix-test.sh @@ -0,0 +1,6 @@ +#!/bin/sh +cd build +ctest -E Windows +if [ -f "test/std_filesystem_test" ]; then + test/std_filesystem_test || true +fi diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..da967a4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,43 @@ +kind: pipeline +name: arm + +platform: + os: linux + arch: arm + +steps: +- name: build + image: alpine + failure: ignore + commands: + - apk update + - apk add --no-cache build-base cmake sudo + - addgroup testgrp + - adduser --disabled-password testuser testgrp + - passwd testuser -u -d + - chown -R testuser:testgrp . + - sudo -u testuser .ci/unix-build.sh + - sudo -u testuser .ci/unix-test.sh + +--- + +kind: pipeline +name: arm64 + +platform: + os: linux + arch: arm64 + +steps: +- name: build + image: alpine + failure: ignore + commands: + - apk update + - apk add --no-cache build-base cmake + - addgroup testgrp + - adduser --disabled-password testuser testgrp + - passwd testuser -u -d + - chown -R testuser:testgrp . + - su -c "./.ci/unix-build.sh" testuser + - su -c "./.ci/unix-test.sh" testuser