mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-24 18:28:55 -06:00
First attempt at separating the different language bindings in CI workflow
This commit is contained in:
126
.github/workflows/build-majestic.yml
vendored
126
.github/workflows/build-majestic.yml
vendored
@@ -4,7 +4,7 @@ on: push
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
ubuntu:
|
ubuntu-build:
|
||||||
name: Build on Ubuntu
|
name: Build on Ubuntu
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
@@ -19,63 +19,25 @@ jobs:
|
|||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
- name: Setup Haskell
|
- uses: actions/upload-artifact@master
|
||||||
uses: haskell/actions/setup@v1
|
with:
|
||||||
# with:
|
name: libpgf-ubuntu
|
||||||
# ghc-version: '8.6'
|
path: |
|
||||||
# cabal-version: '2.4.1.0'
|
/usr/local/lib/libpgf*
|
||||||
|
/usr/local/include/pgf
|
||||||
|
|
||||||
- name: Run Haskell testsuite
|
ubuntu-haskell:
|
||||||
working-directory: ./src/runtime/haskell
|
name: Build & test Haskell bindings on Ubuntu
|
||||||
env:
|
runs-on: ubuntu-20.04
|
||||||
LD_LIBRARY_PATH: /usr/local/lib
|
needs: ubuntu-build
|
||||||
run: |
|
|
||||||
cabal test --extra-lib-dirs=/usr/local/lib
|
|
||||||
|
|
||||||
- name: Install Python bindings
|
|
||||||
working-directory: ./src/runtime/python
|
|
||||||
run: |
|
|
||||||
python setup.py build
|
|
||||||
sudo python setup.py install
|
|
||||||
|
|
||||||
- name: Run Python testsuite
|
|
||||||
working-directory: ./src/runtime/python
|
|
||||||
env:
|
|
||||||
LD_LIBRARY_PATH: /usr/local/lib
|
|
||||||
run: |
|
|
||||||
pip install pytest
|
|
||||||
pytest
|
|
||||||
|
|
||||||
- name: Run JavaScript testsuite
|
|
||||||
working-directory: ./src/runtime/javascript
|
|
||||||
env:
|
|
||||||
LD_LIBRARY_PATH: /usr/local/lib
|
|
||||||
run: |
|
|
||||||
npm ci
|
|
||||||
npm run test
|
|
||||||
|
|
||||||
macos:
|
|
||||||
name: Build on macOS
|
|
||||||
runs-on: macOS-11
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install build tools
|
- uses: actions/download-artifact@master
|
||||||
run: |
|
with:
|
||||||
brew install \
|
name: libpgf-ubuntu
|
||||||
autoconf \
|
path: /
|
||||||
automake \
|
|
||||||
libtool \
|
|
||||||
|
|
||||||
- name: Build C runtime
|
|
||||||
working-directory: ./src/runtime/c
|
|
||||||
run: |
|
|
||||||
glibtoolize
|
|
||||||
autoreconf -i
|
|
||||||
./configure
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
- name: Setup Haskell
|
- name: Setup Haskell
|
||||||
uses: haskell/actions/setup@v1
|
uses: haskell/actions/setup@v1
|
||||||
@@ -89,3 +51,61 @@ jobs:
|
|||||||
LD_LIBRARY_PATH: /usr/local/lib
|
LD_LIBRARY_PATH: /usr/local/lib
|
||||||
run: |
|
run: |
|
||||||
cabal test --extra-lib-dirs=/usr/local/lib
|
cabal test --extra-lib-dirs=/usr/local/lib
|
||||||
|
|
||||||
|
# - name: Install Python bindings
|
||||||
|
# working-directory: ./src/runtime/python
|
||||||
|
# run: |
|
||||||
|
# python setup.py build
|
||||||
|
# sudo python setup.py install
|
||||||
|
#
|
||||||
|
# - name: Run Python testsuite
|
||||||
|
# working-directory: ./src/runtime/python
|
||||||
|
# env:
|
||||||
|
# LD_LIBRARY_PATH: /usr/local/lib
|
||||||
|
# run: |
|
||||||
|
# pip install pytest
|
||||||
|
# pytest
|
||||||
|
#
|
||||||
|
# - name: Run JavaScript testsuite
|
||||||
|
# working-directory: ./src/runtime/javascript
|
||||||
|
# env:
|
||||||
|
# LD_LIBRARY_PATH: /usr/local/lib
|
||||||
|
# run: |
|
||||||
|
# npm ci
|
||||||
|
# npm run test
|
||||||
|
|
||||||
|
# macos:
|
||||||
|
# name: Build on macOS
|
||||||
|
# runs-on: macOS-11
|
||||||
|
#
|
||||||
|
# steps:
|
||||||
|
# - uses: actions/checkout@v2
|
||||||
|
#
|
||||||
|
# - name: Install build tools
|
||||||
|
# run: |
|
||||||
|
# brew install \
|
||||||
|
# autoconf \
|
||||||
|
# automake \
|
||||||
|
# libtool \
|
||||||
|
#
|
||||||
|
# - name: Build C runtime
|
||||||
|
# working-directory: ./src/runtime/c
|
||||||
|
# run: |
|
||||||
|
# glibtoolize
|
||||||
|
# autoreconf -i
|
||||||
|
# ./configure
|
||||||
|
# make
|
||||||
|
# sudo make install
|
||||||
|
#
|
||||||
|
# - name: Setup Haskell
|
||||||
|
# uses: haskell/actions/setup@v1
|
||||||
|
# # with:
|
||||||
|
# # ghc-version: '8.6'
|
||||||
|
# # cabal-version: '2.4.1.0'
|
||||||
|
#
|
||||||
|
# - name: Run Haskell testsuite
|
||||||
|
# working-directory: ./src/runtime/haskell
|
||||||
|
# env:
|
||||||
|
# LD_LIBRARY_PATH: /usr/local/lib
|
||||||
|
# run: |
|
||||||
|
# cabal test --extra-lib-dirs=/usr/local/lib
|
||||||
|
|||||||
Reference in New Issue
Block a user