Skip to content

Commit 19538ee

Browse files
committed
add bigobj to meson win build and a CI test
1 parent 768d44e commit 19538ee

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

.github/workflows/build-meson.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fetch-depth: 0
1818

1919
- name: Install Conda environment
20-
uses: mamba-org/setup-micromamba@v1
20+
uses: mamba-org/setup-micromamba@v2
2121
with:
2222
environment-name: highsdev
2323
create-args: >-
@@ -48,3 +48,37 @@ jobs:
4848
# LD_LIBRARY_PATH=$(pwd)/bbdir/highs \
4949
# PYTHONPATH=$(pwd)/bbdir \
5050
# python examples/call_highs_from_python.py
51+
52+
buildmeson_win:
53+
runs-on: ${{ matrix.os }}
54+
strategy:
55+
matrix:
56+
os: [windows-latest]
57+
steps:
58+
- uses: actions/checkout@v4
59+
# with:
60+
# submodules: "recursive"
61+
# fetch-depth: 0
62+
63+
- name: Install Conda environment
64+
uses: mamba-org/setup-micromamba@v2
65+
with:
66+
environment-name: highsdev
67+
create-args: >-
68+
python==3.8
69+
meson
70+
pkgconfig
71+
ninja
72+
zlib
73+
catch2
74+
numpy
75+
cache-environment: true
76+
init-shell: >-
77+
bash
78+
zsh
79+
80+
- name: Build and test
81+
shell: bash -l {0}
82+
run: |
83+
meson setup bbdir -Duse_zlib=enabled -Dwith_tests=True
84+
meson test -C bbdir

HiGHS.sln

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.2.0
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Highs", "nuget\Highs.csproj", "{906CCF22-9F98-849C-F4C4-760DF67E239A}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{906CCF22-9F98-849C-F4C4-760DF67E239A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{906CCF22-9F98-849C-F4C4-760DF67E239A}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{906CCF22-9F98-849C-F4C4-760DF67E239A}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{906CCF22-9F98-849C-F4C4-760DF67E239A}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
GlobalSection(ExtensibilityGlobals) = postSolution
22+
SolutionGuid = {A7DFF1E9-5E77-4BB8-904A-D7D7A7AA54CB}
23+
EndGlobalSection
24+
EndGlobal

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ _highs_c_suppressions = [
7070

7171
if cppc.get_id() == 'msvc'
7272
add_project_arguments(
73+
'/bigobj',
7374
'/wd4018', # Disable warning: 'expression' : signed/unsigned mismatch
7475
'/wd4061', # Disable warning: enumerator 'identifier' in switch of enum 'enumeration' is not explicitly handled by a case label
7576
'/wd4100', # Disable warning: 'identifier' : unreferenced formal parameter

0 commit comments

Comments
 (0)