Skip to content

Commit 5a2a107

Browse files
authored
Update solver-tests.yml to fix Xpress (#2518)
1 parent 9901fd7 commit 5a2a107

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/solver-tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
env:
1313
PACKAGE: ${{ matrix.package }}
1414
XPRESS_JL_SKIP_LIB_CHECK: "true"
15+
# It's okay to share this secret with other packages because it is the public
16+
# community-xpauth.xpr and not something confidential to JuMP-dev.
17+
XPAUTH_XPR: ${{ secrets.XPAUTH_XPR }}
1518
strategy:
1619
fail-fast: false
1720
matrix:
@@ -90,7 +93,13 @@ jobs:
9093
run: |
9194
import Pkg
9295
Pkg.develop(Pkg.PackageSpec(; path = pwd()))
96+
if ENV["PACKAGE"] == "Xpress"
97+
write("/opt/xpauth.xpr", ENV["XPAUTH_XPR"])
98+
ENV["XPAUTH_PATH"] = "/opt/xpauth.xpr"
99+
ENV["XPRESS_JL_SKIP_LIB_CHECK"] = true
100+
end
93101
Pkg.develop(ENV["PACKAGE"])
102+
Pkg.build(ENV["PACKAGE"])
94103
Pkg.test(ENV["PACKAGE"])
95104
test-cplex:
96105
name: ${{ matrix.package }}

0 commit comments

Comments
 (0)