From 57b9080234120c226f509e3d3a52886b0cba1ec9 Mon Sep 17 00:00:00 2001 From: "John J. Camilleri" Date: Thu, 14 Oct 2021 15:01:37 +0200 Subject: [PATCH] First attempt at separating the different language bindings in CI workflow --- .github/workflows/build-majestic.yml | 126 ++++++++++++++++----------- 1 file changed, 73 insertions(+), 53 deletions(-) diff --git a/.github/workflows/build-majestic.yml b/.github/workflows/build-majestic.yml index 0b887871e..986f71a3f 100644 --- a/.github/workflows/build-majestic.yml +++ b/.github/workflows/build-majestic.yml @@ -4,7 +4,7 @@ on: push jobs: - ubuntu: + ubuntu-build: name: Build on Ubuntu runs-on: ubuntu-20.04 @@ -19,63 +19,25 @@ jobs: make sudo make install - - name: Setup Haskell - uses: haskell/actions/setup@v1 - # with: - # ghc-version: '8.6' - # cabal-version: '2.4.1.0' + - uses: actions/upload-artifact@master + with: + name: libpgf-ubuntu + path: | + /usr/local/lib/libpgf* + /usr/local/include/pgf - - 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 - - - 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 + ubuntu-haskell: + name: Build & test Haskell bindings on Ubuntu + runs-on: ubuntu-20.04 + needs: ubuntu-build 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 + - uses: actions/download-artifact@master + with: + name: libpgf-ubuntu + path: / - name: Setup Haskell uses: haskell/actions/setup@v1 @@ -89,3 +51,61 @@ jobs: LD_LIBRARY_PATH: /usr/local/lib 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: + # - 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