Skip to content

Commit

Permalink
merge latest
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Jun 10, 2024
2 parents 072d153 + 027b2f7 commit 488fb19
Show file tree
Hide file tree
Showing 36 changed files with 1,041 additions and 500 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-nuget-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ jobs:

- name: Dotnet pack
working-directory: ${{runner.workspace}}/build/dotnet/Highs.Native
run: dotnet pack -c Release /p:Version=1.7.0
run: dotnet pack -c Release /p:Version=1.7.1

- uses: actions/upload-artifact@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: build-wheels

on: [push]
# on: [pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -12,7 +13,7 @@ jobs:
runs-on: ${{ matrix.buildplat[0] }}
strategy:
# Ensure that a wheel builder finishes even if another fails
fail-fast: true
fail-fast: false
matrix:
# From NumPy
# Github Actions doesn't support pairing matrix values together, let's improvise
Expand Down
101 changes: 101 additions & 0 deletions .github/workflows/cmake-linux-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: cmake-linux-cpp

on: [push, pull_request]

jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE

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

- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

release_all_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake All
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release -DALL_TESTS=ON

- name: Build All
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel

- name: Test All
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

debug:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug

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

- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

debug_all_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake All
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DALL_TESTS=ON

- name: Build All
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel

- name: Test All
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure
101 changes: 101 additions & 0 deletions .github/workflows/cmake-macos-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: cmake-macos-cpp

on: [push, pull_request]

jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE

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

- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

release_all_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake All
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release -DALL_TESTS=ON

- name: Build All
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel

- name: Test All
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

debug:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug

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

- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure

debug_all_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake All
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DALL_TESTS=ON

- name: Build All
working-directory: ${{runner.workspace}}/build
run: cmake --build . --parallel

- name: Test All
working-directory: ${{runner.workspace}}/build
run: ctest --parallel --timeout 300 --output-on-failure
100 changes: 100 additions & 0 deletions .github/workflows/cmake-windows-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: cmake-windows-cpp

on: [push, pull_request]

jobs:
release:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE

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

- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest --timeout 300 --output-on-failure -C Release

release_all_tests:
runs-on: windows-2019

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake All
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DALL_TESTS=ON

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

- name: Test All
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest --parallel --timeout 300 --output-on-failure -C Release

debug:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE

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

- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest --output-on-failure -C Debug

debug_all_tests:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DALL_TESTS=ON

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

- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest --output-on-failure -C Debug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test-csharp
name: test-csharp-win

on: [push, pull_request]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,27 @@ on: [push, pull_request]

jobs:
fast_build_release:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
toolchain:
- {compiler: gcc, version: 13}
# - {compiler: intel, version: '2023.2'}
# - {compiler: nvidia-hpc, version: '23.11'}
include:
- os: ubuntu-latest
toolchain: {compiler: gcc, version: 12}

steps:
- uses: actions/checkout@v4

- uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}

- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build

Expand Down
Loading

0 comments on commit 488fb19

Please sign in to comment.