try different settings for LD_LIBRARY_PATH on Linux and macOS

This commit is contained in:
Krasimir Angelov
2026-09-09 10:31:50 +02:00
parent 91a0571e51
commit 89bd7af8bd
+27 -7
View File
@@ -2,9 +2,6 @@ name: Build majestic runtime
on: push on: push
env:
LD_LIBRARY_PATH: /usr/local/lib
jobs: jobs:
linux-runtime: linux-runtime:
@@ -12,6 +9,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: quay.io/pypa/manylinux_2_28_x86_64 image: quay.io/pypa/manylinux_2_28_x86_64
env:
LD_LIBRARY_PATH: /usr/local/lib
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
@@ -36,6 +35,8 @@ jobs:
name: Haskell (Linux) name: Haskell (Linux)
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: linux-runtime needs: linux-runtime
env:
LD_LIBRARY_PATH: /usr/local/lib
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
@@ -78,6 +79,8 @@ jobs:
name: Python (Linux) name: Python (Linux)
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: linux-runtime needs: linux-runtime
env:
LD_LIBRARY_PATH: /usr/local/lib
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
@@ -139,6 +142,8 @@ jobs:
macos-runtime: macos-runtime:
name: Runtime (macOS) name: Runtime (macOS)
runs-on: macOS-latest runs-on: macOS-latest
env:
LD_LIBRARY_PATH: /opt/homebrew/lib
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
@@ -155,7 +160,7 @@ jobs:
run: | run: |
glibtoolize glibtoolize
autoreconf -i autoreconf -i
./configure ./configure --prefix=/opt/homebrew
make make
sudo make install sudo make install
@@ -164,13 +169,15 @@ jobs:
with: with:
name: libpgf-macos name: libpgf-macos
path: | path: |
/usr/local/lib/libpgf* /opt/homebrew/lib/libpgf*
/usr/local/include/pgf /opt/homebrew/include/pgf
macos-haskell: macos-haskell:
name: Haskell (macOS) name: Haskell (macOS)
runs-on: macOS-latest runs-on: macOS-latest
needs: macos-runtime needs: macos-runtime
env:
LD_LIBRARY_PATH: /opt/homebrew/lib
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
@@ -187,17 +194,30 @@ jobs:
with: with:
ghc-version: 9 ghc-version: 9
- name: Build & run testsuite - name: build and test the runtime
working-directory: ./src/runtime/haskell working-directory: ./src/runtime/haskell
run: | run: |
cabal v1-install --extra-lib-dirs=/opt/homebrew/lib --extra-include-dirs=/opt/homebrew/include cabal v1-install --extra-lib-dirs=/opt/homebrew/lib --extra-include-dirs=/opt/homebrew/include
cabal test --extra-lib-dirs=/opt/homebrew/lib cabal test --extra-lib-dirs=/opt/homebrew/lib
- name: build the compiler
working-directory: ./src/compiler
run: |
cabal v1-install
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: compiler-macos
path: |
~/.cabal/bin/gf
macos-python: macos-python:
name: Python (macOS) name: Python (macOS)
runs-on: macOS-latest runs-on: macOS-latest
needs: macos-runtime needs: macos-runtime
env: env:
LD_LIBRARY_PATH: /opt/homebrew/lib
EXTRA_INCLUDE_DIRS: /opt/homebrew/include EXTRA_INCLUDE_DIRS: /opt/homebrew/include
EXTRA_LIB_DIRS: /opt/homebrew/lib EXTRA_LIB_DIRS: /opt/homebrew/lib
MACOSX_DEPLOYMENT_TARGET: 11.0 MACOSX_DEPLOYMENT_TARGET: 11.0