Skip to content

Commit

Permalink
add ci system for x11/software
Browse files Browse the repository at this point in the history
  • Loading branch information
nullgemm committed Nov 25, 2022
1 parent 8c4c85e commit 5d9d132
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ci/concourse_pipeline.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions ci/globox_image_x11_gcc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM alpine:3.12

COPY ./scripts /scripts

RUN /scripts/install.sh

CMD /scripts/build_x11.sh development x11 software none
6 changes: 6 additions & 0 deletions ci/globox_image_x11_gcc/artifact.sh
Original file line number Diff line number Diff line change
@@ -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" .
3 changes: 3 additions & 0 deletions ci/globox_image_x11_gcc/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker build -t globox_image_x11_gcc .
5 changes: 5 additions & 0 deletions ci/globox_image_x11_gcc/run.sh
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions ci/globox_image_x11_gcc/scripts/build_x11.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"
22 changes: 22 additions & 0 deletions ci/globox_image_x11_gcc/scripts/install.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5d9d132

Please sign in to comment.