mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
Add ARM builds on Drone CI
This commit is contained in:
parent
e63a58c5ba
commit
37fafe5f1a
4
.ci/unix-build.sh
Executable file
4
.ci/unix-build.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
mkdir build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||
cmake --build .
|
6
.ci/unix-test.sh
Executable file
6
.ci/unix-test.sh
Executable file
@ -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
.drone.yml
Normal file
43
.drone.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user