Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ARM builds on Drone CI #52

Merged
merged 1 commit into from
Mar 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .ci/unix-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build .
6 changes: 6 additions & 0 deletions .ci/unix-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
cd build
ctest -E Windows
if [ -f "test/std_filesystem_test" ]; then
test/std_filesystem_test || true
fi
43 changes: 43 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -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