diff --git a/.drone.yml b/.drone.yml index 760737a..f3ac364 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,10 @@ kind: pipeline type: docker -name: default +name: amd64 + +platform: + os: linux + arch: amd64 steps: - name: build @@ -21,4 +25,32 @@ steps: target: /files/sist2/${DRONE_REPO_OWNER}_${DRONE_REPO_NAME}/${DRONE_BRANCH}_${DRONE_BUILD_NUMBER}_${DRONE_COMMIT}/ source: - ./sist2.gz - - ./sist2_debug.tar.gz \ No newline at end of file + - ./sist2_debug.tar.gz + +--- +kind: pipeline +type: docker +name: arm64 + +platform: + arch: arm64 + +steps: + - name: build + image: simon987/ubuntu_ci_arm + commands: + - ./ci/build_arm64.sh + - name: scp files + image: appleboy/drone-scp + settings: + host: + from_secret: SSH_HOST + port: + from_secret: SSH_PORT + user: + from_secret: SSH_USER + key: + from_secret: SSH_KEY + target: /files/sist2/${DRONE_REPO_OWNER}_${DRONE_REPO_NAME}/${DRONE_BRANCH}_${DRONE_BUILD_NUMBER}_${DRONE_COMMIT}/ + source: + - ./sist2_arm64.gz diff --git a/ci/build_arm64.sh b/ci/build_arm64.sh index a58365c..9a1eebb 100755 --- a/ci/build_arm64.sh +++ b/ci/build_arm64.sh @@ -4,6 +4,8 @@ VCPKG_ROOT="/vcpkg" rm *.gz +git submodule update --init --recursive + rm -rf CMakeFiles CMakeCache.txt cmake -DSIST_DEBUG=off -DCMAKE_TOOLCHAIN_FILE="${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" . make -j 4