Skip to content

Commit

Permalink
avoid arm os runner with broken python setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Jun 3, 2024
1 parent c90676f commit 8d5fe25
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"])'
Expand Down
27 changes: 3 additions & 24 deletions .github/workflows/ci-judi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand All @@ -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")'
Expand All @@ -82,4 +61,4 @@ jobs:
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
file: lcov.info
file: lcov.info
31 changes: 5 additions & 26 deletions .github/workflows/ci-op.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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")'
Expand All @@ -111,4 +90,4 @@ jobs:
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
file: lcov.info
file: lcov.info
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 8d5fe25

Please sign in to comment.