From 6c331c429c80f7d2c9decce1340708c3816598ba Mon Sep 17 00:00:00 2001 From: odow Date: Mon, 24 Jun 2024 10:59:02 +1200 Subject: [PATCH] Update --- .github/workflows/ci.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 038b324a..72505afc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,18 +37,10 @@ jobs: XPRESS_JL_SKIP_LIB_CHECK: "true" - shell: julia --project=. --color=yes {0} run: | - LATEST_VERSION = "9.4.1" - import Pkg - Pkg.add(; name = "Xpress_jll", version = LATEST_VERSION) - import Xpress_jll - # Older licenses may have expired. Copy license to cwd and then - # install specific version. - if ENV["XPRESS_JLL_VERSION"] != LATEST_VERSION - 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 + write("xpauth.xpr", ENV["XPRESS_JL_COMMUNITY_XPAUTH_XPR"]) + Pkg.add(; name = "Xpress_jll", version = ENV["XPRESS_JLL_VERSION"]) env: + XPRESS_JL_COMMUNITY_XPAUTH_XPR: ${{ secrets.XPRESS_JL_COMMUNITY_XPAUTH_XPR }} XPRESS_JLL_VERSION: ${{ matrix.XPRESS_JLL_VERSION }} - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1