Build on clang, and also arm
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
8412f3ddc9
commit
a173ab48d1
52
.drone.jsonnet
Normal file
52
.drone.jsonnet
Normal file
|
@ -0,0 +1,52 @@
|
|||
local Pipeline(image, version, arch, depinstall, extra, gccExtra, clangExtra) = {
|
||||
kind: "pipeline",
|
||||
type: "docker",
|
||||
name: image+"-"+version+"-"+arch,
|
||||
platform: {
|
||||
os: "linux",
|
||||
arch: arch
|
||||
},
|
||||
steps: [
|
||||
{
|
||||
name: "build-gcc",
|
||||
image: image+":"+version,
|
||||
commands: [
|
||||
depinstall+" make autoconf automake "+extra+" "+gccExtra,
|
||||
"./autogen.sh",
|
||||
"CC=gcc ./configure",
|
||||
"make clean",
|
||||
"make all -j$(nproc)"
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "build-clang",
|
||||
image: image+":"+version,
|
||||
commands: [
|
||||
depinstall+" make autoconf automake "+extra+" "+clangExtra,
|
||||
"./autogen.sh",
|
||||
"CC=clang ./configure",
|
||||
"make clean",
|
||||
"make all -j$(nproc)"
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
local AptPipeline(image, version, arch, extra="libtool-bin", gccExtra="gcc", clangExtra="clang") = Pipeline(image, version, arch, "apt update && DEBIAN_FRONTEND=noninteractive apt install -y", extra, gccExtra, clangExtra);
|
||||
|
||||
local PacManPipeline(image, version, arch, extra="libtool", gccExtra="gcc", clangExtra="clang") = Pipeline(image, version, arch, "pacman -Syy && pacman --noconfirm -S", extra, gccExtra, clangExtra);
|
||||
|
||||
local ApkPipeline(image, version, arch, extra="libtool musl-dev linux-headers", gccExtra="gcc", clangExtra="gcc clang") = Pipeline(image, version, arch, "apk add --update", extra, gccExtra, clangExtra);
|
||||
|
||||
local YumPipeline(image, version, arch, extra="libtool", gccExtra="gcc", clangExtra="clang") = Pipeline(image, version, arch, "yum install -y", extra, gccExtra, clangExtra);
|
||||
|
||||
local XbpsPipeline(image, version, arch, extra="libtool", gccExtra="gcc", clangExtra="clang") = Pipeline(image, version, arch, "xbps-install -Sy", extra, gccExtra, clangExtra);
|
||||
|
||||
#
|
||||
|
||||
[
|
||||
AptPipeline("ubuntu", "20.04", "amd64"),
|
||||
AptPipeline("ubuntu", "18.04", "amd64"),
|
||||
|
||||
AptPipeline("ubuntu", "20.04", "arm64"),
|
||||
]
|
29
.drone.yml
29
.drone.yml
|
@ -1,29 +0,0 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: ubuntu-20.04
|
||||
steps:
|
||||
- name: build
|
||||
image: ubuntu:20.04
|
||||
commands:
|
||||
- apt update
|
||||
- DEBIAN_FRONTEND=noninteractive apt install -y build-essential autoconf automake libtool-bin
|
||||
- ./autogen.sh
|
||||
- ./configure --prefix /usr
|
||||
- make -j $(nproc)
|
||||
- make install
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: ubuntu-18.04
|
||||
steps:
|
||||
- name: build
|
||||
image: ubuntu:18.04
|
||||
commands:
|
||||
- apt update
|
||||
- DEBIAN_FRONTEND=noninteractive apt install -y build-essential autoconf automake libtool-bin
|
||||
- ./autogen.sh
|
||||
- ./configure --prefix /usr
|
||||
- make -j $(nproc)
|
||||
- make install
|
||||
...
|
Loading…
Reference in a new issue