diff --git a/.github/workflows/ci-op.yml b/.github/workflows/ci-op.yml index bfa7dc88..870d8245 100644 --- a/.github/workflows/ci-op.yml +++ b/.github/workflows/ci-op.yml @@ -36,23 +36,23 @@ jobs: cc: ['gcc-11'] include: - - os: macos-13 + - os: macos-15 version: '1.6' op: "ISO_OP" omp: 1 - cc: gcc-13 + cc: clang - - os: macos-13 + - os: macos-15 version: '1.8' op: "ISO_OP" omp: 1 - cc: gcc-13 + cc: clang - - os: macos-13 + - os: macos-15 version: '1.9' op: "ISO_OP" omp: 1 - cc: gcc-13 + cc: clang - os: ubuntu-latest version: '1.9' @@ -77,16 +77,30 @@ jobs: arch: x64 - name: Set up Python 3.9 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.9 + - name: Setup clang for osx + if: runner.os == 'macOS' + run: | + brew install libomp + python3 -m pip install -U pip numpy + echo "PATH=$PATH:/opt/homebrew/bin:$(brew --prefix llvm@18)/bin" >> $GITHUB_ENV + echo "LD_LIBRARY_PATH=$(brew --prefix llvm@18)/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV + - name: Set julia python run: | echo "PYTHON=$(which python3)" >> $GITHUB_ENV + echo "PYCALL_JL_RUNTIME_PYTHON=$(which python3)" >> $GITHUB_ENV python3 -m pip install devito[tests,extras]@git+https://github.com/devitocodes/devito.git PYTHON=$(which python3) julia -e 'using Pkg;Pkg.add("PyCall");Pkg.build("PyCall")' + - name: Debug numpy path + run: | + python3 -c "import numpy; print(numpy.__file__)" + julia -e 'using PyCall; np = pyimport("numpy"); @show np."__file__"' + - name: Build JUDI uses: julia-actions/julia-buildpkg@latest