Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Mar 30, 2024
1 parent c155cb0 commit e654677
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
version: ['1.6', '1'] # Test against LTS and current minor release
os: [ubuntu-latest, macOS-latest, windows-latest]
arch: [x64]
# If updating most recent version, change shell script below
XPRESS_JLL_VERSION: ['8.13.4', '9.3.0']
include:
- version: '1'
Expand All @@ -37,14 +38,15 @@ jobs:
- shell: julia --project=. --color=yes {0}
run: |
import Pkg
Pkg.add("Xpress_jll")
Pkg.add(; name = "Xpress_jll", version = "9.3.0")
import Xpress_jll
# Assume Pkg has installed the latest version with a valid community
# license. Copy it to the current directory.
license_dir = joinpath(dirname(dirname(Xpress_jll.libxprs)), "license")
cp(joinpath(license_dir, "community-xpauth.xpr"), "xpauth.xpr")
# Now install the specific version of Xpress
Pkg.add(; name = "Xpress_jll", version = ENV["XPRESS_JLL_VERSION"])
# Older licenses may have expired. Copy 9.3.0 license to cwd and then
# install specific version.
if ENV["XPRESS_JLL_VERSION"] != "9.3.0"
license_dir = joinpath(dirname(dirname(Xpress_jll.libxprs)), "license")
cp(joinpath(license_dir, "community-xpauth.xpr"), "xpauth.xpr")
Pkg.add(; name = "Xpress_jll", version = ENV["XPRESS_JLL_VERSION"])
end
env:
XPRESS_JLL_VERSION: ${{ matrix.XPRESS_JLL_VERSION }}
- uses: julia-actions/julia-runtest@v1
Expand Down

0 comments on commit e654677

Please sign in to comment.