Skip to content

Ci setup #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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).

Expand Down