forked from GitHub/gf-core
Add macOS to CI
This commit is contained in:
61
.github/workflows/build-majestic.yml
vendored
61
.github/workflows/build-majestic.yml
vendored
@@ -64,3 +64,64 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
npm run test
|
npm run test
|
||||||
|
|
||||||
|
macos:
|
||||||
|
name: Build on macOS
|
||||||
|
runs-on: macOS-11
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# All these are already available in GitHub runner
|
||||||
|
# - name: Install build tools
|
||||||
|
# run: |
|
||||||
|
# sudo apt-get update
|
||||||
|
# sudo apt-get install -y \
|
||||||
|
# autoconf \
|
||||||
|
# automake \
|
||||||
|
# libtool \
|
||||||
|
# make \
|
||||||
|
# g++
|
||||||
|
|
||||||
|
- name: Build C runtime
|
||||||
|
working-directory: ./src/runtime/c
|
||||||
|
run: |
|
||||||
|
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
|
||||||
|
|
||||||
|
# - 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
|
||||||
|
|||||||
Reference in New Issue
Block a user