Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Jul 3, 2023
1 parent 268745c commit c003605
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-default.yml
Expand Up @@ -19,12 +19,12 @@ jobs:
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake -DEXP=ON $GITHUB_WORKSPACE
run: cmake -S $GITHUB_WORKSPACE

- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --parallel
run: cmake --build . --config Release --parallel

- name: Test
working-directory: ${{runner.workspace}}/build
Expand Down
8 changes: 3 additions & 5 deletions docs/src/installation.md
Expand Up @@ -94,14 +94,12 @@ It is also possible to specify a specific Visual studio version to build with:
When building under Windows, some extra options are available. One is building a 32 bit version or a 64 bit version. The default build is 64 bit. To build 32 bit, the following commands can be used from the `HiGHS/` directory:

```bash
cmake -A Win32 -S . -DFAST_BUILD=OFF -B buildWin32
cmake -A Win32 -S . -B buildWin32
cmake --build buildWin32
```

Another thing specific for windows is the calling convention, particularly important for the HiGHS dynamic library (dll). The default calling convention in windows is cdecl calling convention, however, dlls are most often compiled with stdcall. Most applications which expect stdcall, can't access dlls with cdecl and vice versa. To change the default calling convention from cdecl to stdcall the following option can be added
```bash
cmake -DSTDCALL=ON -S . -DFAST_BUILD=OFF -B build
cmake -DSTDCALL=ON -S . -B build
cmake --build build
```
An extra note. With the legacy `-DFAST_BUILD=OFF`, under windows the build dll is called `highs.dll` however the exe expects `libhighs.dll` so a manual copy of `highs.dll` to `libhighs.dll` is needed. Of course all above options can be combined with each other.

```
6 changes: 2 additions & 4 deletions docs/src/interfaces/cpp/index.md
Expand Up @@ -21,10 +21,8 @@ the full sequence of commands required is as follows

``` bash
cd HiGHS
mkdir build
cd build
cmake -DFAST_BUILD=ON ..
cmake --build .
cmake -S . -B build
cmake --build build
```

This creates the [executable](@ref Executable) `build/bin/highs`.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -24,7 +24,7 @@ before-all = [
before-build = [
"rm -rf build",
"mkdir -p build && cd build",
"cmake -DFAST_BUILD=ON -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/project/installs/highs ..",
"cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/project/installs/highs ..",
"make -j && make install",
]

Expand Down

0 comments on commit c003605

Please sign in to comment.