Skip to content

Commit a095a4b

Browse files
committed
[YJ] knitro branch sqaush
1 parent 3ed2b2d commit a095a4b

File tree

1,350 files changed

+59508
-24976
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,350 files changed

+59508
-24976
lines changed

.bazelignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ install_make
44
build_cross
55
dependencies/install
66
dependencies/sources
7+
temp_cpp
8+
temp_dotnet
9+
temp_java
10+
temp_python

.bazelrc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ build --apple_platform_type=macos
2222
build --enable_platform_specific_config
2323

2424
build:linux --cxxopt="-std=c++17" --cxxopt=-Wno-sign-compare --host_cxxopt="-std=c++17" --host_cxxopt=-Wno-sign-compare
25-
build:macos --cxxopt="-std=c++17" --cxxopt=-Wno-sign-compare --cxxopt=-mmacos-version-min=10.15 --features=-supports_dynamic_linker
26-
build:macos --host_cxxopt="-std=c++17" --host_cxxopt=-Wno-sign-compare --host_cxxopt=-mmacos-version-min=10.15
25+
build:macos --cxxopt="-std=c++17" --cxxopt=-Wno-sign-compare --cxxopt=-mmacos-version-min=10.15 --cxxopt=-Wno-dangling-field --features=-supports_dynamic_linker
26+
build:macos --host_cxxopt="-std=c++17" --host_cxxopt=-Wno-sign-compare --host_cxxopt=-mmacos-version-min=10.15 --host_cxxopt=-Wno-dangling-field
2727
build:windows --cxxopt="/std:c++20" --host_cxxopt="/std:c++20"
2828

2929
# Enable the runfiles symlink tree on Windows. This makes it possible to build
@@ -37,7 +37,16 @@ build:windows --enable_runfiles
3737
# build --subcommands=pretty_print
3838

3939
# Print test logs for failed tests.
40-
test --test_output=errors
40+
test --test_output=errors --test_timeout_filters=-eternal
4141

4242
# Put user-specific options in .bazelrc.user
4343
try-import %workspace%/.bazelrc.user
44+
45+
# asan
46+
build:asan --strip=never
47+
build:asan --copt -fsanitize=address
48+
build:asan --copt -DADDRESS_SANITIZER
49+
build:asan --copt -O1
50+
build:asan --copt -g
51+
build:asan --copt -fno-omit-frame-pointer
52+
build:asan --linkopt -fsanitize=address

.github/workflows/aarch64_toolchain.yml renamed to .github/not_used/aarch64_toolchain.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# ref: https://toolchains.bootlin.com/
12
name: aarch64 Toolchain
23

34
on: [push, pull_request, workflow_dispatch]

.github/workflows/amd64_cmake_glop_cpp.yml renamed to .github/not_used/amd64_cmake_glop_cpp.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,15 @@ jobs:
3939
install_target: install
4040
},
4141
{
42-
runner: "macos-latest",
42+
runner: "macos-13", # last macos intel based runner
43+
generator: "Xcode",
44+
config: Release,
45+
build_target: ALL_BUILD,
46+
test_target: RUN_TESTS,
47+
install_target: install
48+
},
49+
{
50+
runner: "macos-latest", # macos arm64 based runner
4351
generator: "Xcode",
4452
config: Release,
4553
build_target: ALL_BUILD,
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# ref: https://github.com/docker-library/official-images
2+
name: amd64 Docker Bazel
3+
4+
on: [push, pull_request, workflow_dispatch]
5+
6+
jobs:
7+
bazel:
8+
strategy:
9+
matrix:
10+
platform: [amd64] # arm64 riscv64
11+
distro: [
12+
almalinux,
13+
# alpine,
14+
archlinux,
15+
debian,
16+
fedora,
17+
opensuse,
18+
rockylinux,
19+
ubuntu
20+
]
21+
fail-fast: false
22+
name: ${{ matrix.platform }} • ${{ matrix.distro }} • Bazel
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Check docker
27+
run: |
28+
docker info
29+
docker buildx ls
30+
- name: Build env image
31+
run: make --directory=bazel ${{ matrix.platform }}_${{ matrix.distro }}_env
32+
- name: Build devel image
33+
run: make --directory=bazel ${{ matrix.platform }}_${{ matrix.distro }}_devel
34+
- name: Build project
35+
run: make --directory=bazel ${{ matrix.platform }}_${{ matrix.distro }}_build
36+
- name: Test project
37+
run: make --directory=bazel ${{ matrix.platform }}_${{ matrix.distro }}_test

.github/workflows/amd64_docker_cmake.yml renamed to .github/not_used/amd64_docker_cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ref: https://github.com/actions/runner-images
1+
# ref: https://github.com/docker-library/official-images
22
name: amd64 Docker CMake
33

44
on: [push, pull_request, workflow_dispatch]
@@ -7,7 +7,7 @@ jobs:
77
cmake:
88
strategy:
99
matrix:
10-
distro: [alpine, archlinux, centos, debian, fedora, opensuse, ubuntu]
10+
distro: [almalinux, alpine, archlinux, debian, fedora, opensuse, rockylinux, ubuntu]
1111
lang: [cpp, python, dotnet, java]
1212
fail-fast: false
1313
name: ${{ matrix.distro }} • CMake • ${{ matrix.lang }}

.github/workflows/amd64_freebsd_cmake.yml renamed to .github/not_used/amd64_freebsd_cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: amd64 FreeBSD CMake
22

33
on: [push, pull_request, workflow_dispatch]
44

5-
# Only macos runner provide virtualisation with vagrant/virtualbox installed.
5+
# Only macos-12 runner provide virtualisation with vagrant/virtualbox installed.
66
# ref: https://github.com/actions/runner-images/tree/main/images/macos
77
# ref: https://app.vagrantup.com/generic/boxes/freebsd13
88
jobs:
@@ -21,7 +21,7 @@ jobs:
2121
lang: java
2222
allow_failure: true
2323
name: FreeBSD • CMake • ${{ matrix.lang }}
24-
runs-on: macos-latest
24+
runs-on: macos-12
2525
steps:
2626
- uses: actions/checkout@v4
2727
- name: vagrant version

.github/workflows/amd64_linux_bazel.yml renamed to .github/not_used/amd64_linux_bazel.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
- uses: actions/checkout@v4
2525
- name: Check Java
2626
run: java -version
27+
- name: Check mvn
28+
run: mvn --version
2729
- name: Setup Python
2830
uses: actions/setup-python@v4
2931
with:
@@ -39,6 +41,12 @@ jobs:
3941
sudo apt-get install bazel
4042
- name: Check Bazel
4143
run: bazel version
44+
- name: Change Python in WORKSPACE
45+
run: >
46+
sed
47+
-i
48+
's/\(DEFAULT_PYTHON =\) "3.[0-9]\+"/\1 "${{ matrix.python.version }}"/g'
49+
WORKSPACE
4250
- name: Build
4351
run: >
4452
bazel build

.github/workflows/amd64_linux_cmake_coinor_off.yml renamed to .github/not_used/amd64_linux_cmake_coinor_off.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: swig -version
2727
# Install .NET SDKs
2828
- name: Setup .NET 6.0
29-
uses: actions/setup-dotnet@v1
29+
uses: actions/setup-dotnet@v4
3030
with:
3131
dotnet-version: 6.0.x
3232
- name: Check dotnet

.github/workflows/amd64_linux_cmake_dotnet.yml renamed to .github/not_used/amd64_linux_cmake_dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
sudo apt install -y swig
1616
swig -version
1717
- name: Setup .NET 6.0
18-
uses: actions/setup-dotnet@v1
18+
uses: actions/setup-dotnet@v4
1919
with:
2020
dotnet-version: 6.0.x
2121
- name: Check dotnet

0 commit comments

Comments
 (0)