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 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).