Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
85188b2
ci: #79: add check-for-exceeding-odb-database-support-code-limit work…
aasheptunov Jul 9, 2026
8a3c617
ci: #79: fix environment variables format
aasheptunov Jul 9, 2026
6dff9e1
ci: #79: add missing point in name of build image workflow
aasheptunov Jul 9, 2026
c68c001
ci: #79: add workflow_call workflow trigger to build image workflow
aasheptunov Jul 9, 2026
71e70fb
ci: #79: rename check-limit step to check-odb-support-database-code-l…
aasheptunov Jul 9, 2026
544547b
ci: #79: add quotation marks when using environment variables
aasheptunov Jul 9, 2026
f862105
ci: #79: add libodb and libodb-pgsql installation steps
aasheptunov Jul 9, 2026
3d078bd
ci: #79: remove redundant environment variables
aasheptunov Jul 9, 2026
452bfc4
ci: #79: fix condition uncorrect exit status error
aasheptunov Jul 10, 2026
b59dd59
ci: #79: add conan instalation step
aasheptunov Jul 10, 2026
d75a9b9
ci: #79: fix error for conan version grep condition
aasheptunov Jul 10, 2026
469c6db
ci: #79: add conan default profile generation step
aasheptunov Jul 10, 2026
66eb134
ci: #79: add setup local reciepes index step
aasheptunov Jul 10, 2026
e2188f8
ci: #79: fix error for line breaks
aasheptunov Jul 10, 2026
e8b0147
chore: #79: add missing class import for libodb reciep
aasheptunov Jul 10, 2026
2828346
ci: #79: change workflow os from ubuntu24.04 to ubuntu22.02 so that f…
aasheptunov Jul 10, 2026
7cef069
ci: #79: add verify odb support database code step
aasheptunov Jul 10, 2026
05d605c
chore: #79: rollback changes for libodb reciepe
aasheptunov Jul 10, 2026
52ac813
ci: #79: format workflow; remove debugging trigger action and environ…
aasheptunov Jul 10, 2026
528e389
fix: #79: fix mount volume path error
aasheptunov Jul 10, 2026
686ec84
chore: #79: add devcontainer-lock.json for devcontainer features vers…
aasheptunov Jul 10, 2026
65db2ef
ci: #79: rollback removing sudo from odb compiler step
aasheptunov Jul 10, 2026
d9e0829
ci: #79: formatting corrections
aasheptunov Jul 10, 2026
2d03314
ci: #79: update build type in libraries include path
aasheptunov Jul 10, 2026
4de42a3
ci: #79: formatting corrections
aasheptunov Jul 10, 2026
da0ec3d
ci: #79: add missing part to libraries include paths
aasheptunov Jul 10, 2026
c28786a
ci: #79: add debug step
aasheptunov Jul 10, 2026
a7b9f1e
ci: #79: fix odb-deps folder path; formatting changes
aasheptunov Jul 10, 2026
3d8e268
ci: #79: formatting corrections
aasheptunov Jul 10, 2026
f271bce
ci: #79: formatting corrections
aasheptunov Jul 10, 2026
368b022
ci: #79: update libraries include path
aasheptunov Jul 10, 2026
8a7ac0f
ci: #79: change target models path to regex
aasheptunov Jul 10, 2026
1f19b6a
ci: #79: change target libraries include path to find method
aasheptunov Jul 10, 2026
9a2a6e9
ci: #79: change limit to 100 lines for test
aasheptunov Jul 10, 2026
ac41663
ci: #79: change odb installation way to using .deb packages
aasheptunov Jul 10, 2026
0875354
ci: #79: remove redundant code
aasheptunov Jul 10, 2026
6a3da79
ci: #79: remove libpq5 installation step for test
aasheptunov Jul 10, 2026
e02189c
ci: #79: test commit
aasheptunov Jul 10, 2026
10f2183
ci: #79: remove redundant code
aasheptunov Jul 10, 2026
de14a3a
ci: #79: remove redundant workflow trigger action
aasheptunov Jul 10, 2026
8c0c50e
ci: #79: comment workflow_call trigger action for build nad push imag…
aasheptunov Jul 10, 2026
028c822
chore: #79: rollback changes
aasheptunov Jul 10, 2026
640d809
ci: #79: update checkout action version
aasheptunov Jul 10, 2026
c5480b1
ci: #79: move odb package index link to environment variable
aasheptunov Jul 10, 2026
edf6f32
ci: #79: modify models path so that collect all .h files inside core …
aasheptunov Jul 10, 2026
3ed1e73
ci: #79: fix process stars in bash while odb sloc calculate step exec…
aasheptunov Jul 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"mounts": [
// This mounts increase future building on devcontainer in case any reseting of container volumes
// Mount caching of build folder
"source=dev-build-cache,target=${containerWorkspaceFolder}/build,type=volume",
"source=dev-build-cache,target=${containerWorkspaceFolder}/build,type=volume",
// Mount caching of conan dependencies builds
"source=dev-conan-cache,target=~/.conan2,type=volume"
],
"source=dev-conan-cache,target=~/.conan2,type=volume"
],
"customizations": {
"vscode": {
"extensions": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# In cases where a project’s source code is closed, the ODB library
# license affects the project’s license. If the limit of 10,000 lines
# of database support code is exceeded, it is no longer possible to use
# the FPL license; in that case, you must either purchase the CPL
# or make the project’s source code open source.

# More details here: https://www.codesynthesis.com/products/odb/license.xhtml

# This workflow will succeed if the ODB database support code
# (.ixx, .cxx, .hxx) has not reached the limit, and will fail otherwise.

name: Check for exceeding the odb database support code limit

on:
pull_request:
types: [opened, synchronize]

env:
ODB_PACKAGE_INDEX_LINK: https://www.codesynthesis.com/download/odb/2.5.0/ubuntu/ubuntu22.04/x86_64

jobs:
verify-that-database-support-code-limit-has-not-been-exceeded:
runs-on: ubuntu-22.04

steps:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Download and install odb compiler
run: |
curl -fsSL -o odb.deb "${ODB_PACKAGE_INDEX_LINK}/odb_2.5.0-0~ubuntu22.04_amd64.deb"
sudo apt-get install -y ./odb.deb
odb --version | grep -q "No such file or directory" && exit 1 || exit 0

- name: Download and install libodb library
run: |
curl -fsSL -o libodb.deb "${ODB_PACKAGE_INDEX_LINK}/libodb_2.5.0-0~ubuntu22.04_amd64.deb"
sudo apt-get install -y ./libodb.deb
apt policy libodb | grep -q "Unable to locate package" && exit 1 || exit 0

- name: Download and install libodb-dev library
run: |
curl -fsSL -o libodb-dev.deb "${ODB_PACKAGE_INDEX_LINK}/libodb-dev_2.5.0-0~ubuntu22.04_amd64.deb"
sudo apt-get install -y ./libodb-dev.deb
apt policy libodb-dev | grep -q "Unable to locate package" && exit 1 || exit 0

- name: Check the limit
run: |
# If this is not enabled, bash will not be able to process '**'
shopt -s globstar nullglob
odb \
--show-sloc --sloc-limit 10000 -d pgsql --std c++20 \
./src/core/**/*.h

2 changes: 1 addition & 1 deletion .github/workflows/reusable-docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Check out the repo
uses: actions/checkout@v4
uses: actions/checkout@v7

# this is needed to address this issue according to the comment https://github.com/devcontainers/ci/issues/271#issuecomment-2301764487
# otherwise our TourmalineCore org name cannot be used in docker image names, only tourmalinecore
Expand Down
Loading