Přidá zbývající Č90 klíčová slova (#32) #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clang CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Compile examples | |
run: for f in examples/*.c; do echo ">>> Compiling example - $f" && (clang "$f" && echo "--- OK") || (echo "### ERROR $?" && false); done | |
- name: Test translator | |
run: mkdir -p tmp/ && SRC=testdata/izp1_2018.c && CZECH=tmp/czech.c && ENGLISH=tmp/english.c && clang $SRC && python3 translate.py to czech.h $SRC $CZECH && clang $CZECH && python3 translate.py from czech.h $CZECH $ENGLISH && clang $ENGLISH && [ "$(diff $SRC $CZECH)" != "" ] && [ "$(diff $SRC $ENGLISH)" == "" ] && echo "=== OK" || (echo "### ERROR" && false); rm -r tmp/ |