Merge pull request #52 from nightlark/add-arm-ci-build

Add ARM builds on Drone CI
This commit is contained in:
gulrak 2020-03-04 07:50:35 +01:00 committed by GitHub
commit 05bcd2ccc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

43
.drone.yml Normal file
View File

@ -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