On Fri, Feb 03, 2023 at 12:03:18PM +0900, Akira Yokosawa wrote: > On Thu, 2 Feb 2023 23:18:55 -0300, Leonardo Bras wrote: > > For Gitlab repositories mirroring the original repository, trigger the > > Gitlab-CI after every push to the original repo. > > > > For the pipeline to run, the Gitlab repo needs to configure: > > - Settings -> CI/CD -> General Pipelines -> CI/CD configuration file to > > utilities/gitlab-ci.yml > > > > What the pipeline does: > > - Compile-test CodeSamples > > - IF pass, build PDFs: regular, 1c, eb > > > > Signed-off-by: Leonardo Bras <leobras.c@xxxxxxxxx> > > --- > > utilities/gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ > > 1 file changed, 33 insertions(+) > > create mode 100644 utilities/gitlab-ci.yml > > Reviewed-by: Akira Yokosawa <akiyks@xxxxxxxxx> Queued and pushed, thank you both! Thanx, Paul > > diff --git a/utilities/gitlab-ci.yml b/utilities/gitlab-ci.yml > > new file mode 100644 > > index 00000000..acc12fb2 > > --- /dev/null > > +++ b/utilities/gitlab-ci.yml > > @@ -0,0 +1,33 @@ > > +image: archlinux:latest > > + > > +stages: > > + - test > > + - build > > + > > +test_codesamples: > > + stage: test > > + > > + before_script: > > + - pacman --noconfirm -Sy make gcc liburcu > > + > > + script: > > + - make -C CodeSamples/ > > + > > +generate_pdfs: > > + stage: build > > + > > + before_script: > > + - pacman --noconfirm -Sy texlive-most fig2dev ghostscript graphviz inkscape wget make which fontconfig git ttf-dejavu gnu-free-fonts > > + - mkdir -p ~/.local/share/fonts && cp fonts/steel-city-comic.regular.ttf ~/.local/share/fonts/ && fc-cache > > + - wget https://sourceforge.net/projects/fig2ps/files/latest/download -O /dev/shm/fig2ps.tbz > > + - mkdir /dev/shm/build && tar -xjf /dev/shm/fig2ps.tbz -C /dev/shm/build --strip-components=1 > > + - make install -C /dev/shm/build > > + > > + script: > > + - make perfbook.pdf perfbook-1c.pdf perfbook-eb.pdf > > + > > + artifacts: > > + paths: > > + - perfbook.pdf > > + - perfbook-1c.pdf > > + - perfbook-eb.pdf > >