Skip to content

Commit e8560f0

Browse files
Sébastien LoiselSébastien Loisel
authored andcommitted
Move MPI verification after package build (fix package not found error)
1 parent ec6b8b1 commit e8560f0

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

.github/workflows/CI.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,9 @@ jobs:
102102
GH_TOKEN: ${{ github.token }}
103103

104104
- name: Configure MPI to use bundled Open MPI
105-
env:
106-
LD_LIBRARY_PATH: /tmp/petsc_strumpack/lib
107105
run: |
108106
# Write LocalPreferences.toml directly to configure MPI.jl
109-
# This avoids MPIPreferences validation issues
107+
# This will be picked up by julia-buildpkg
110108
cat > LocalPreferences.toml << 'EOF'
111109
[MPIPreferences]
112110
_format = "1.0"
@@ -119,21 +117,22 @@ jobs:
119117
sed -i 's/^[[:space:]]*//' LocalPreferences.toml
120118
echo "LocalPreferences.toml:"
121119
cat LocalPreferences.toml
122-
# Build MPI with new preferences
123-
julia --project=. -e '
124-
using Pkg
125-
Pkg.build("MPI"; verbose=true)
126-
'
127-
# Verify MPI configuration
120+
121+
- name: Build package
122+
env:
123+
LD_LIBRARY_PATH: /tmp/petsc_strumpack/lib
124+
uses: julia-actions/julia-buildpkg@v1
125+
126+
- name: Verify MPI configuration
127+
env:
128+
LD_LIBRARY_PATH: /tmp/petsc_strumpack/lib
129+
run: |
128130
julia --project=. -e '
129131
using MPI
130132
println("MPI library: ", MPI.libmpi)
131133
println("mpiexec: ", MPI.mpiexec())
132134
'
133135
134-
- name: Build package
135-
uses: julia-actions/julia-buildpkg@v1
136-
137136
- name: Run tests with STRUMPACK
138137
env:
139138
JULIA_PETSC_LIBRARY: /tmp/petsc_strumpack/lib/libpetsc.so

0 commit comments

Comments
 (0)