Use Xpress_jll for binaries #489
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
# needed to allow julia-actions/cache to delete old caches that it has created | |
permissions: | |
actions: write | |
contents: read | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.XPRESS_JLL_VERSION }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
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' | |
os: macos-14 | |
arch: aarch64 | |
XPRESS_JLL_VERSION: '9.3.0' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- uses: julia-actions/cache@v1 | |
- uses: julia-actions/julia-buildpkg@v1 | |
env: | |
XPRESS_JL_SKIP_LIB_CHECK: "true" | |
- shell: julia --project=. --color=yes {0} | |
run: | | |
import Pkg | |
Pkg.add(; name = "Xpress_jll", version = "9.3.0") | |
import Xpress_jll | |
# 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 | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v1 | |
with: | |
file: lcov.info |