From 0b5ae5329ab383b726cac83e77f205496071b010 Mon Sep 17 00:00:00 2001 From: Luigi Russo Date: Sat, 11 Dec 2021 17:56:03 +0100 Subject: [PATCH 1/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 66a1660..d8cc6c3 100755 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # A not so short introduction to ConTeXt +[![CI](https://github.com/contextgarden/not-so-short-introduction-to-context/actions/workflows/main.yml/badge.svg)](https://github.com/contextgarden/not-so-short-introduction-to-context/actions/workflows/main.yml) + It can sometimes be useful to **help someone get started** with the **wonderful and fascinating typesetting and document composition system** that is [**ConTeXt**](https://wiki.contextgarden.net). From 9f0cfa62fac8820c5a23d3a165d926f1502e2d61 Mon Sep 17 00:00:00 2001 From: Luigi Russo Date: Sat, 11 Dec 2021 17:57:22 +0100 Subject: [PATCH 2/2] CI setup --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a50d94f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: GitHub Checkout + uses: actions/checkout@v2 + + - name: Download ConTeXt and Compile + run: | + wget -O context.zip http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip + unzip context.zip -d context + cd context/ + sh install.sh >/dev/null + cd tex/texmf-linux-64/bin + CTXPATH=`pwd` + declare -A languages=(["en"]="eng" ["es"]="esp" ["ru"]="rus" ["fr"]="fra" ["fr2"]="fra") + for lang in "${!languages[@]}" + do + cd $GITHUB_WORKSPACE/$lang + echo "Compiling $lang version..." + tlang=${languages[$lang]} + extension="mkiv" + if [[ $tlang == "fra" ]]; then + extension="tex" + fi + $CTXPATH/context "introCTX_$tlang.$extension" >/dev/null + done