From 52e3ff82a1aaa4aaa2984acf8dcb6db9aecf41fa Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Thu, 5 Aug 2021 16:26:35 +0800 Subject: [PATCH 1/3] [TD-5773]add some arm env in Drone --- .drone.yml | 108 +++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 81 insertions(+), 27 deletions(-) diff --git a/.drone.yml b/.drone.yml index f7ee4e976f..bdc3819f18 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,15 +25,14 @@ steps: - master --- kind: pipeline -name: test_arm64 +name: test_arm64_bionic platform: os: linux arch: arm64 - steps: - name: build - image: gcc + image: arm64v8/ubuntu:bionic commands: - apt-get update - apt-get install -y cmake build-essential @@ -48,9 +47,87 @@ steps: branch: - develop - master + - 2.0 --- kind: pipeline -name: test_arm +name: test_arm64_focal + +platform: + os: linux + arch: arm64 + +steps: +- name: build + image: arm64v8/ubuntu:focal + commands: + - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + - apt-get update + - apt-get install -y -qq cmake build-essential + - mkdir debug + - cd debug + - cmake .. -DCPUTYPE=aarch64 > /dev/null + - make + trigger: + event: + - pull_request + when: + branch: + - develop + - master + - 2.0 +--- +kind: pipeline +name: test_arm64_centos7 + +platform: + os: linux + arch: arm64 + +steps: +- name: build + image: arm64v8/centos:7 + commands: + - yum install -y gcc gcc-c++ make cmake git + - mkdir debug + - cd debug + - cmake .. -DCPUTYPE=aarch64 > /dev/null + - make + trigger: + event: + - pull_request + when: + branch: + - develop + - master + - 2.0 +--- +kind: pipeline +name: test_arm64_centos8 + +platform: + os: linux + arch: arm64 + +steps: +- name: build + image: arm64v8/centos:8 + commands: + - yum install -y gcc gcc-c++ make cmake git + - mkdir debug + - cd debug + - cmake .. -DCPUTYPE=aarch64 > /dev/null + - make + trigger: + event: + - pull_request + when: + branch: + - develop + - master + - 2.0 +--- +kind: pipeline +name: test_arm_bionic platform: os: linux @@ -73,7 +150,6 @@ steps: branch: - develop - master - --- kind: pipeline name: build_trusty @@ -174,25 +250,3 @@ steps: - develop - master ---- -kind: pipeline -name: goodbye - -platform: - os: linux - arch: amd64 - -steps: -- name: 64-bit - image: alpine - commands: - - echo 64-bit is good. - when: - branch: - - develop - - master - - -depends_on: -- test_arm64 -- test_amd64 \ No newline at end of file From c1c00706a831f514ae88287ed84a6058244d90eb Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Thu, 5 Aug 2021 18:01:05 +0800 Subject: [PATCH 2/3] update centos8 --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index bdc3819f18..b4fb21b274 100644 --- a/.drone.yml +++ b/.drone.yml @@ -112,7 +112,7 @@ steps: - name: build image: arm64v8/centos:8 commands: - - yum install -y gcc gcc-c++ make cmake git + - dnf install -y gcc gcc-c++ make cmake epel-release git - mkdir debug - cd debug - cmake .. -DCPUTYPE=aarch64 > /dev/null From f916c1c6b3b3fd3957397fa30d9a9f505df49622 Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Fri, 6 Aug 2021 12:10:07 +0800 Subject: [PATCH 3/3] fix centos8 --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b4fb21b274..b520f308ba 100644 --- a/.drone.yml +++ b/.drone.yml @@ -112,7 +112,7 @@ steps: - name: build image: arm64v8/centos:8 commands: - - dnf install -y gcc gcc-c++ make cmake epel-release git + - dnf install -y gcc gcc-c++ make cmake epel-release git libarchive - mkdir debug - cd debug - cmake .. -DCPUTYPE=aarch64 > /dev/null