Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/julia/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ version = VersionNumber(ENV["HIGHS_RELEASE"])
sources = [GitSource(ENV["HIGHS_URL"], ENV["HIGHS_COMMIT"])]

script = raw"""
export BUILD_SHARED="ON"
export BUILD_STATIC="OFF"

cd $WORKSPACE/srcdir/HiGHS

# Remove system CMake to use the jll version
Expand All @@ -23,19 +20,21 @@ apk del cmake
rm -rf build
mkdir build

# Do fully static build only on Windows
if [[ "${BUILD_SHARED}" == "OFF" ]] && [[ "${target}" == *-mingw* ]]; then
export CXXFLAGS="-static"
if [[ "${target}" == *-mingw* ]]; then
LBT=blastrampoline-5
else
LBT=blastrampoline
fi

cmake -S . -B build \
-DCMAKE_INSTALL_PREFIX=${prefix} \
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=${BUILD_SHARED} \
-DZLIB_USE_STATIC_LIBS=${BUILD_STATIC} \
-DHIPO=ON -DBUILD_SHARED_EXTRAS_LIB=OFF \
-DBLAS_LIBRARIES="${libdir}/libopenblas.${dlext}"
-DBUILD_SHARED_LIBS=ON \
-DHIPO=ON \
-DBUILD_SHARED_EXTRAS_LIB=OFF \
-DBLA_VENDOR=blastrampoline \
-DBLAS_LIBRARIES=\"${LBT}\"

if [[ "${target}" == *-linux-* ]]; then
make -C build -j ${nproc}
Expand All @@ -62,7 +61,7 @@ platforms = expand_cxxstring_abis(platforms)
dependencies = [
Dependency("CompilerSupportLibraries_jll"),
Dependency("Zlib_jll"),
Dependency("OpenBLAS32_jll"),
Dependency("libblastrampoline_jll"),
HostBuildDependency(PackageSpec(; name="CMake_jll")),
]

Expand All @@ -76,5 +75,5 @@ build_tarballs(
products,
dependencies;
preferred_gcc_version = v"11",
julia_compat = "1.6",
julia_compat = "1.10",
)
22 changes: 4 additions & 18 deletions .github/workflows/julia-tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: JuliaCompileAndTest

on: [push, pull_request]
# needed to allow julia-actions/cache to delete old caches that it has created

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
Expand All @@ -18,7 +15,7 @@ jobs:
matrix:
triplet: ['x86_64-linux-gnu-cxx11', 'aarch64-apple-darwin', 'x86_64-w64-mingw32-cxx11']
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
with:
version: "1.7"
Expand Down Expand Up @@ -64,7 +61,7 @@ jobs:
os: 'windows-latest'
arch: x64
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: julia-actions/setup-julia@v3
with:
version: "1.10"
Expand Down Expand Up @@ -106,18 +103,7 @@ jobs:
"$(m[1]) = \"$(dir)\"\n",
)
Pkg.develop(; path = joinpath(ENV["GITHUB_WORKSPACE"], "HiGHS_jll"))
- shell: julia --color=yes {0}
run: |
import HiGHS_jll
file = joinpath(ENV["GITHUB_WORKSPACE"], "check", "instances", "flugpl.mps")
run(`$(HiGHS_jll.highs()) --solver=hipo $file`)
run(`$(HiGHS_jll.highs()) $file`)
- shell: julia --color=yes {0}
run: |
using Pkg
# HiGHS uses (N+1)/2 threads. HiGHS.jl parallelises the tests and, in
# the default setting, it may use up to 4 parallel jobs. This means
# HiGHS may attempt to start up to 2(N+1) threads and we get unhandled
# exceptions on macOS and a SIGTERM on linux. To avoid these errors,
# opt out of running the tests in parallel.
Pkg.test("HiGHS"; test_args=["--parallel=false"])
Pkg.test("HiGHS")
Loading