-
Notifications
You must be signed in to change notification settings - Fork 186
50 lines (46 loc) · 1.33 KB
/
build-meson.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: build-meson
on: [push, pull_request]
jobs:
buildmeson:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-latest issue with micromamba action
# windows-latest takes to long
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
fetch-depth: 0
- name: Install Conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-name: highsdev
create-args: >-
python==3.8
meson
pkgconfig
ninja
zlib
catch2
numpy
cache-environment: true
init-shell: >-
bash
zsh
- name: Build and test
shell: bash -l {0}
run: |
meson setup bbdir -Duse_zlib=enabled -Dwith_tests=True
meson test -C bbdir
# highspy no longer compiled with meson
# see if it can be done separately if it is needed for meson projects
# - name: Test compiled highspy
# shell: bash -l {0}
# run: |
# meson configure bbdir -Dwith_pybind11=True
# meson compile -C bbdir
# LD_LIBRARY_PATH=$(pwd)/bbdir/src \
# PYTHONPATH=$(pwd)/bbdir \
# python examples/call_highs_from_python.py