name: C/C++/Cython/Python CI on: push: branches: [master] paths: - '*.py' - '*.pyx' - '*.pxd' - '.github/**' pull_request: branches: [master] jobs: notification: runs-on: ubuntu-latest name: Notify start to ##gitlama steps: - name: IRC notification uses: Gottox/irc-message-action@v1 with: server: irc.uvt.nl channel: '#gitlama' nickname: GitHub message: |- ${{ github.actor }} started a build of python-frog build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest] compiler: [g++] steps: - uses: actions/checkout@v2 - name: Install Build Environment run: | if [ "$RUNNER_OS" == "Linux" ]; then sudo apt-get install pkg-config autoconf-archive fi - name: Install Dependencies run: | if [ "$RUNNER_OS" == "Linux" ]; then sudo apt-get install libicu-dev libxml2-dev libbz2-dev; sudo apt-get install zlib1g-dev libtar-dev libexttextcat-dev; sudo apt-get install python3 cython3 python3-lxml python3-pip fi - name: install TiccUtils env: CXX: ${{ matrix.compiler }} run: | git clone https://github.com/LanguageMachines/ticcutils; cd ticcutils; bash bootstrap.sh; ./configure; make; sudo make install; cd ..; - name: install libfolia env: CXX: ${{ matrix.compiler }} run: | git clone https://github.com/LanguageMachines/libfolia; cd libfolia; bash bootstrap.sh; ./configure; make; sudo make install; cd ..; - name: install uctodata env: CXX: ${{ matrix.compiler }} run: | git clone https://github.com/LanguageMachines/uctodata; cd uctodata; bash bootstrap.sh; ./configure; make; sudo make install; cd ..; - name: install ucto env: CXX: ${{ matrix.compiler }} run: | git clone https://github.com/LanguageMachines/ucto; cd ucto; bash bootstrap.sh; ./configure; make; sudo make install; cd ..; - name: install timbl env: CXX: ${{ matrix.compiler }} run: | git clone https://github.com/LanguageMachines/timbl; cd timbl; bash bootstrap.sh; ./configure; make; sudo make install; cd ..; - name: install mbt env: CXX: ${{ matrix.compiler }} run: | git clone https://github.com/LanguageMachines/mbt; cd mbt; bash bootstrap.sh; ./configure; make; sudo make install; cd ..; - name: install frogdata env: CXX: ${{ matrix.compiler }} run: | git clone https://github.com/LanguageMachines/frogdata; cd frogdata; bash bootstrap.sh; ./configure; make; sudo make install; cd ..; - name: install frog env: CXX: ${{ matrix.compiler }} run: | git clone https://github.com/LanguageMachines/frog; cd frog; bash bootstrap.sh; ./configure; make; sudo make install; cd ..; - name: build and install python frog env: CXX: ${{ matrix.compiler }} run: sudo pip3 install --prefix /usr/local/ . - name: check env: CXX: ${{ matrix.compiler }} run: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib python3 test.py continue-on-error: true - name: Notify IRC of failure if: ${{ failure() }} uses: Gottox/irc-message-action@v1 with: server: irc.uvt.nl channel: '#gitlama' nickname: GitHub message: |- Building python-frog with ${{ matrix.compiler }} by ${{ github.actor }} on ${{ matrix.os }}: FAILED - name: Notify IRC of succes if: ${{ success() }} uses: Gottox/irc-message-action@v1 with: server: irc.uvt.nl channel: '#gitlama' nickname: GitHub message: |- Building python-frog with ${{ matrix.compiler }} by ${{ github.actor }} on ${{ matrix.os }}: SUCCESS