From 8d5fe25be218ac2995658bedacc1e6c175d9c2e8 Mon Sep 17 00:00:00 2001 From: mloubout Date: Mon, 3 Jun 2024 10:11:21 -0400 Subject: [PATCH] avoid arm os runner with broken python setup --- .github/workflows/ci-examples.yml | 2 +- .github/workflows/ci-judi.yml | 27 +++------------------------ .github/workflows/ci-op.yml | 31 +++++-------------------------- Project.toml | 2 +- 4 files changed, 10 insertions(+), 52 deletions(-) diff --git a/.github/workflows/ci-examples.yml b/.github/workflows/ci-examples.yml index ba2897c82..1af44c95c 100644 --- a/.github/workflows/ci-examples.yml +++ b/.github/workflows/ci-examples.yml @@ -63,7 +63,7 @@ jobs: - name: Set julia python run: | python3 -m pip install -U pip - python3 -m pip install matplotlib seiscm colorcet + python3 -m pip install matplotlib<3.9 seiscm colorcet echo "PYTHON=$(which python3)" >> $GITHUB_ENV julia -e 'using Pkg;Pkg.add(["PyCall", "PyPlot", "SlimPlotting"])' diff --git a/.github/workflows/ci-judi.yml b/.github/workflows/ci-judi.yml index aca83ae91..96b4aeeec 100644 --- a/.github/workflows/ci-judi.yml +++ b/.github/workflows/ci-judi.yml @@ -19,6 +19,7 @@ jobs: name: JUDI base on Julia ${{ matrix.version }} - ${{ matrix.os }} runs-on: ${{ matrix.os }} env: + DEVITO_ARCH: gcc-11 DEVITO_LANGUAGE: "openmp" OMP_NUM_THREADS: 4 GROUP: "JUDI" @@ -28,21 +29,12 @@ jobs: matrix: version: ['1.6', '1.7', '1.8', '1.9', '1.10'] - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-13] steps: - name: Checkout JUDI uses: actions/checkout@v4 - - name: Cache julia install - uses: actions/cache@v4 - env: - cache-name: cache-julia-pkgs - with: - # julia is installed in ~/.julia - path: ~/.julia - key: ${{ matrix.os }}-${{ matrix.version }}-${{ env.cache-name }} - - name: Setup julia uses: julia-actions/setup-julia@v1 with: @@ -54,19 +46,6 @@ jobs: with: python-version: 3.9 - - name: setup devito config - run: | - if [ "${{matrix.os}}" = "macos-latest" ]; then - brew install llvm libomp - echo "/opt/homebrew/bin:/opt/homebrew/opt/llvm/bin" >> GITHUB_PATH - echo "LD_LIBRARY_PATH=/opt/homebrew/opt/llvm/lib" >> GITHUB_ENV - echo "DEVITO_ARCH=clang" >> $GITHUB_ENV - echo "DEVITO_PLATFORM=m1" >> $GITHUB_ENV - else - echo "DEVITO_ARCH=gcc-12" >> $GITHUB_ENV - echo "DEVITO_PLATFORM=cpu64" >> $GITHUB_ENV - fi - - name: Set julia python run: | PYTHON=$(which python3) julia -e 'using Pkg;Pkg.add("PyCall");Pkg.build("PyCall")' @@ -82,4 +61,4 @@ jobs: - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v3 with: - file: lcov.info + file: lcov.info \ No newline at end of file diff --git a/.github/workflows/ci-op.yml b/.github/workflows/ci-op.yml index 1ec9aadf1..21caa36d5 100644 --- a/.github/workflows/ci-op.yml +++ b/.github/workflows/ci-op.yml @@ -19,6 +19,7 @@ jobs: name: ${{ matrix.op }} on Julia ${{ matrix.version }} - ${{ matrix.os }} runs-on: ${{ matrix.os }} env: + DEVITO_ARCH: gcc-11 DEVITO_LANGUAGE: "openmp" DEVITO_LOGGING: "INFO" OMP_NUM_THREADS: ${{ matrix.omp }} @@ -34,17 +35,17 @@ jobs: omp: [2] include: - - os: macos-latest + - os: macos-13 version: '1.6' op: "ISO_OP" omp: 1 - - os: macos-latest + - os: macos-13 version: '1.8' op: "ISO_OP" omp: 1 - - os: macos-latest + - os: macos-13 version: '1.9' op: "ISO_OP" omp: 1 @@ -63,15 +64,6 @@ jobs: - name: Checkout JUDI uses: actions/checkout@v4 - - name: Cache julia install - uses: actions/cache@v4 - env: - cache-name: cache-julia-pkgs - with: - # julia is installed in ~/.julia - path: ~/.julia - key: ${{ matrix.os }}-${{ matrix.version }}-${{ env.cache-name }} - - name: Setup julia uses: julia-actions/setup-julia@v1 with: @@ -83,19 +75,6 @@ jobs: with: python-version: 3.9 - - name: setup devito config - run: | - if [ "${{matrix.os}}" = "macos-latest" ]; then - brew install llvm libomp - echo "/opt/homebrew/bin:/opt/homebrew/opt/llvm/bin" >> GITHUB_PATH - echo "LD_LIBRARY_PATH=/opt/homebrew/opt/llvm/lib" >> GITHUB_ENV - echo "DEVITO_ARCH=clang" >> $GITHUB_ENV - echo "DEVITO_PLATFORM=m1" >> $GITHUB_ENV - else - echo "DEVITO_ARCH=gcc-12" >> $GITHUB_ENV - echo "DEVITO_PLATFORM=cpu64" >> $GITHUB_ENV - fi - - name: Set julia python run: | PYTHON=$(which python3) julia -e 'using Pkg;Pkg.add("PyCall");Pkg.build("PyCall")' @@ -111,4 +90,4 @@ jobs: - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v3 with: - file: lcov.info + file: lcov.info \ No newline at end of file diff --git a/Project.toml b/Project.toml index 0b58e4f44..cab5b71cf 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "JUDI" uuid = "f3b833dc-6b2e-5b9c-b940-873ed6319979" authors = ["Philipp Witte, Mathias Louboutin"] -version = "3.4.2" +version = "3.4.3" [deps] ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"