diff --git a/ci/concourse_pipeline.yml b/ci/concourse_pipeline.yml new file mode 100644 index 00000000..8141bb8a --- /dev/null +++ b/ci/concourse_pipeline.yml @@ -0,0 +1,16 @@ +jobs: + - name: globox_build_x11 + plan: + - task: globox_build_x11_task + config: + platform: linux + image_resource: + type: registry-image + source: + repository: docker_registry:443/nullgemm/globox_image_x11_gcc + ca_certs: ((docker_registry_certs)) + tag: latest + params: + GIT_REPO_URL: globox_image_x11_gcc + run: + path: /scripts/build_x11.sh diff --git a/ci/globox_image_x11_gcc/Dockerfile b/ci/globox_image_x11_gcc/Dockerfile new file mode 100644 index 00000000..4eb7d987 --- /dev/null +++ b/ci/globox_image_x11_gcc/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:3.12 + +COPY ./scripts /scripts + +RUN /scripts/install.sh + +CMD /scripts/build_x11.sh development x11 software none diff --git a/ci/globox_image_x11_gcc/artifact.sh b/ci/globox_image_x11_gcc/artifact.sh new file mode 100755 index 00000000..fbab6b1b --- /dev/null +++ b/ci/globox_image_x11_gcc/artifact.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +tag=$(git tag --sort v:refname | tail -n 1) +release=globox_bin_"$tag" + +docker cp globox_container_x11_gcc:/globox/"$release" . diff --git a/ci/globox_image_x11_gcc/build.sh b/ci/globox_image_x11_gcc/build.sh new file mode 100755 index 00000000..48047373 --- /dev/null +++ b/ci/globox_image_x11_gcc/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +docker build -t globox_image_x11_gcc . diff --git a/ci/globox_image_x11_gcc/run.sh b/ci/globox_image_x11_gcc/run.sh new file mode 100755 index 00000000..93b51cb6 --- /dev/null +++ b/ci/globox_image_x11_gcc/run.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# example for a release build +# $ ./run.sh /scripts/build_x11.sh release x11 software none +docker run --name globox_container_x11_gcc globox_image_x11_gcc "$@" &> log diff --git a/ci/globox_image_x11_gcc/scripts/build_x11.sh b/ci/globox_image_x11_gcc/scripts/build_x11.sh new file mode 100755 index 00000000..1ebe6a05 --- /dev/null +++ b/ci/globox_image_x11_gcc/scripts/build_x11.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +git clone https://github.com/nullgemm/globox.git +cd ./globox || exit + +# TODO remove +git checkout next + +# test build +./make/scripts/build.sh "$@" diff --git a/ci/globox_image_x11_gcc/scripts/install.sh b/ci/globox_image_x11_gcc/scripts/install.sh new file mode 100755 index 00000000..1c58d3e6 --- /dev/null +++ b/ci/globox_image_x11_gcc/scripts/install.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# git cloning the repo +# bash running the build scripts +# samurai building the binaries +# gcc compiling the code +# musl-dev standard C library +# libxcb-dev libxcb +# xcb-util-wm-dev xcb_icccm.h +# xcb-util-image-dev xcb_image.h +# xcb-util-errors-dev xcb_errors.h + +apk add --no-cache \ + git \ + bash \ + samurai \ + gcc \ + musl-dev \ + libxcb-dev \ + xcb-util-wm-dev \ + xcb-util-image-dev \ + xcb-util-errors-dev