Skip to content

Commit

Permalink
Implement Github Workflow to validate the build of training materials
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  • Loading branch information
tpetazzoni committed Oct 29, 2021
1 parent 2232007 commit 56cf9af
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/actions/build-material-action/Dockerfile
@@ -0,0 +1,43 @@
FROM fedora:34

LABEL maintainer="Bootlin <feedback@bootlin.com>" \
vendor="Bootlin" \
description="Container with everything needed to build Bootlin training materials"

RUN dnf -y update && \
dnf -y install \
dia \
fakeroot \
ghostscript \
inkscape \
levien-inconsolata-fonts \
liberation-serif-fonts \
liberation-sans-fonts \
liberation-mono-fonts \
make \
python3-pygments \
rsync \
texlive-beamer \
texlive-environ \
texlive-epstopdf \
texlive-eurosym \
texlive-hyphenat \
texlive-inconsolata \
texlive-lstaddons \
texlive-mdframed \
texlive-moreverb \
texlive-overpic \
texlive-parskip \
texlive-texfot \
texlive-titling \
texlive-ulem \
texlive-upquote \
texlive-wrapfig \
texlive-xetex \
texlive-textpos \
texlive-makecell \
texlive-stmaryrd

ENV HOME /tmp

WORKDIR /training
8 changes: 8 additions & 0 deletions .github/actions/build-material-action/action.yml
@@ -0,0 +1,8 @@
name: 'Build training materials'
inputs:
targets:
description: 'Make targets to build'
required: true
runs:
using: 'docker'
image: 'Dockerfile'
118 changes: 118 additions & 0 deletions .github/workflows/training-materials.yml
@@ -0,0 +1,118 @@
on: [push, pull_request]
jobs:
embedded-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build-material-action
with:
entrypoint: /usr/bin/make
args: >
full-embedded-linux-slides.pdf
full-embedded-linux-4d-slides.pdf
full-embedded-linux-qemu-slides.pdf
full-embedded-linux-labs.pdf
full-embedded-linux-4d-labs.pdf
full-embedded-linux-qemu-labs.pdf
embedded-linux-4d-agenda.pdf
embedded-linux-4d-fr-agenda.pdf
embedded-linux-agenda.pdf
embedded-linux-fr-agenda.pdf
embedded-linux-online-agenda.pdf
embedded-linux-online-fr-agenda.pdf
embedded-linux-qemu-agenda.pdf
embedded-linux-labs.tar.xz
embedded-linux-4d-labs.tar.xz
embedded-linux-qemu-labs.tar.xz
linux-kernel:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build-material-action
with:
entrypoint: /usr/bin/make
args: >
full-linux-kernel-slides.pdf
full-linux-kernel-labs.pdf
linux-kernel-agenda.pdf
linux-kernel-fr-agenda.pdf
linux-kernel-online-agenda.pdf
linux-kernel-online-fr-agenda.pdf
linux-kernel-labs.tar.xz
buildroot:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build-material-action
with:
entrypoint: /usr/bin/make
args: >
full-buildroot-slides.pdf
full-buildroot-labs.pdf
buildroot-agenda.pdf
buildroot-fr-agenda.pdf
buildroot-online-agenda.pdf
buildroot-online-fr-agenda.pdf
buildroot-labs.tar.xz
yocto:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build-material-action
with:
entrypoint: /usr/bin/make
args: >
full-yocto-slides.pdf
full-yocto-stm32-slides.pdf
full-yocto-labs.pdf
full-yocto-stm32-labs.pdf
yocto-agenda.pdf
yocto-fr-agenda.pdf
yocto-online-agenda.pdf
yocto-online-fr-agenda.pdf
yocto-stm32-agenda.pdf
yocto-stm32-fr-agenda.pdf
yocto-stm32-online-agenda.pdf
yocto-stm32-online-fr-agenda.pdf
yocto-labs.tar.xz
yocto-stm32-labs.tar.xz
boot-time:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build-material-action
with:
entrypoint: /usr/bin/make
args: >
full-boot-time-slides.pdf
full-boot-time-labs.pdf
boot-time-agenda.pdf
boot-time-fr-agenda.pdf
boot-time-online-agenda.pdf
boot-time-online-fr-agenda.pdf
boot-time-labs.tar.xz
graphics:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build-material-action
with:
entrypoint: /usr/bin/make
args: >
full-graphics-slides.pdf
graphics-agenda.pdf
graphics-fr-agenda.pdf
graphics-online-agenda.pdf
graphics-online-fr-agenda.pdf
autotools:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/build-material-action
with:
entrypoint: /usr/bin/make
args: >
full-autotools-slides.pdf
full-autotools-labs.pdf
autotools-agenda.pdf
autotools-labs.tar.xz

0 comments on commit 56cf9af

Please sign in to comment.