From 90a7f75ba7801edae73966f3921677a9cad393c2 Mon Sep 17 00:00:00 2001 From: mloubout Date: Mon, 30 Sep 2024 21:09:29 -0400 Subject: [PATCH] switch to arm macos runner --- .github/workflows/ci-op.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci-op.yml b/.github/workflows/ci-op.yml index bfa7dc88..2f269e18 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,29 @@ 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 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