Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge to main #276

Merged
merged 26 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f3917ec
Bump django from 5.0.2 to 5.0.3 in /PyOdbDesignServer
dependabot[bot] Mar 11, 2024
bca37e0
Bump docker/build-push-action from 5.1.0 to 5.2.0
dependabot[bot] Mar 11, 2024
bbdd6d2
Bump docker/build-push-action from 5.1.0 to 5.2.0 (#255)
nam20485 Mar 12, 2024
12a3cfe
Bump docker/scout-action from 1.5.0 to 1.5.1
dependabot[bot] Mar 12, 2024
e9b924f
Bump docker/scout-action from 1.5.0 to 1.5.1 (#254)
nam20485 Mar 12, 2024
1c624b1
Bump github/codeql-action from 3.24.5 to 3.24.6
dependabot[bot] Mar 12, 2024
8f4a170
Bump github/codeql-action from 3.24.5 to 3.24.6 (#252)
nam20485 Mar 12, 2024
70d9d99
Merge branch 'development' into dependabot/pip/PyOdbDesignServer/djan…
nam20485 Mar 12, 2024
ebf05b0
Bump django from 5.0.2 to 5.0.3 in /PyOdbDesignServer (#253)
nam20485 Mar 12, 2024
fe49bcf
formatting & comments
nam20485 Apr 7, 2024
f8de3c0
Update README.md
nam20485 Apr 20, 2024
b981790
add doxygen docs to github pages site
nam20485 Apr 20, 2024
980def6
Merge branch 'nam20485' of github.com:nam20485/OdbDesign into nam20485
nam20485 Apr 20, 2024
ac12b1b
Merge branch 'development' into nam20485
nam20485 Apr 20, 2024
50f02a5
add 'exclude_filearchive' query params to /designs/<string> endpoint
nam20485 Apr 20, 2024
3393ef8
add commented out /sdl compiler-time checks
nam20485 Apr 20, 2024
885f258
Merge branch 'nam20485' of github.com:nam20485/OdbDesign into nam20485
nam20485 Apr 20, 2024
74a7a34
remove all PyOdb* python swig wrapper and django server related items
nam20485 Apr 20, 2024
785841d
use _stricmp instead of stricmp to fix warning
nam20485 Apr 20, 2024
289d9ad
remove doxygen generation from CMake
nam20485 Apr 20, 2024
75262bc
remove references to PyOdb*
nam20485 Apr 20, 2024
2447039
revert use of _stricmp because its not available on POSIX systems (mu…
nam20485 Apr 20, 2024
776420f
remove use of stricmp bc its not available on POSIX systems (windows …
nam20485 Apr 20, 2024
823ea25
add doxygen docs to GitHub Pages site (#274)
nam20485 Apr 20, 2024
d6d8abc
Bump debian from bookworm-20240211-slim to bookworm-20240408-slim
dependabot[bot] Apr 20, 2024
f7aeca8
Bump debian from bookworm-20240211-slim to bookworm-20240408-slim (#268)
nam20485 Apr 20, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
uses: github/codeql-action/init@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
with:
languages: ${{ matrix.language }}
config-file: ${{ github.workspace }}/.github/codeql-config.yml
Expand Down Expand Up @@ -83,6 +83,6 @@ jobs:
run: cmake --build --preset linux-release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
uses: github/codeql-action/analyze@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
uses: docker/build-push-action@af5a7ed5ba88268d5278f7203fb52cd833f66d6e
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker-scout-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
uses: docker/build-push-action@af5a7ed5ba88268d5278f7203fb52cd833f66d6e
with:
context: .
push: false
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
- name: Analyze for critical and high CVEs
id: docker-scout-cves
# if: ${{ github.event_name != 'pull_request_target' }}
uses: docker/scout-action@67eb1afe777307506aaecb9acd9a0e0389cb99ae # v1.5.0
uses: docker/scout-action@b3dd3d6c420903eb3ff2812ac1b1d146ffb93a41 # v1.5.1
with:
command: cves,recommendations
image: ${{ steps.meta.outputs.tags }}
Expand All @@ -133,14 +133,14 @@ jobs:

- name: Upload SARIF result
id: upload-sarif
uses: github/codeql-action/upload-sarif@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
uses: github/codeql-action/upload-sarif@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
with:
sarif_file: sarif.output.json

- name: Docker Scout Compare to Latest
id: docker-scout
if: ${{ github.event_name == 'pull_request' }}
uses: docker/scout-action@67eb1afe777307506aaecb9acd9a0e0389cb99ae # v1.5.0
uses: docker/scout-action@b3dd3d6c420903eb3ff2812ac1b1d146ffb93a41 # v1.5.1
with:
command: compare
image: ${{ steps.meta.outputs.tags }}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:

- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Install Doxygen
run: sudo apt install -y doxygen

- name: Generate Doxygen docs
run: doxygen ./OdbDesignLib/doxygen.conf

- name: Setup Pages
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4.0.0
Expand All @@ -42,6 +48,9 @@ jobs:
with:
source: ./docs
destination: ./_site

# - name: Copy Doxygen docs
# run: cp -r ./OdbDesignLib/doxygen/html ./_site/api

- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
uses: github/codeql-action/upload-sarif@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
with:
sarif_file: results.sarif
22 changes: 1 addition & 21 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@

/.vs
/out
OdbDesignLib/OdbDesignLib_wrap.cxx
PyOdbDesignLib/dist/
PyOdbDesignLib/_PyOdbDesignLib.dll
PyOdbDesignLib/PyOdbDesignLib.py
PyOdbDesignLib/_PyOdbDesignLib.pyd
PyOdbDesignLib/__pycache__/
PyOdbDesignServer/Lib/
PyOdbDesignServer/PyOdbDesignServer/__pycache__/
PyOdbDesignServer/pyvenv.cfg
PyOdbDesignServer/db.sqlite3
PyOdbDesignServer/Scripts/
PyOdbDesignServer/api/__pycache__/
PyOdbDesignServer/PyOdbDesignLib/
/cmake-build-debug
build/
/vcpkg_installed
Expand All @@ -25,7 +12,6 @@ build/
/.idea/workspace.xml
ssl/
artifacts/
doxygen/docs/
/TEST_DATA
OdbDesignTests/Testing/
Testing/
Expand All @@ -36,15 +22,9 @@ testlog.xml
/OdbDesignTests/CMakeLists_Local.txt
/OdbDesignTests/DesignNameTests_Local.cpp
/output
OdbDesignServer/api/__pycache__/
OdbDesignServer/api/migrations/__pycache__/
OdbDesignServer/OdbDesignServer/__pycache__/
OdbDesignServer/PyOdbDesignLib/__pycache__/
OdbDesignServer/PyOdbDesignLib/PyOdbDesignLib.py
OdbDesignServer/db.sqlite3
OdbDesignServer/PyOdbDesignLib/_PyOdbDesignLib.pyd
/TEST_DATA.zip
deploy/kubeconfig
Dockerfile.commentedOut
scripts/create-release-invoker.js
/compose-designs
docs/api/
28 changes: 1 addition & 27 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ if (NOT DEFINED ENV{CI})
set(CMAKE_CXX_COMPILER_LAUNCHER "${CCACHE_EXE}")
endif()

# required for SWIG python wrapper
#set(CMAKE_POSITION_INDEPENDENT_CODE ON)

#
# GoogleTest support
#
Expand Down Expand Up @@ -58,6 +55,7 @@ if (MSVC)
add_compile_options(/wd4251)
# ignore C4100: 'identifier': unreferenced formal parameter
add_compile_options(/wd4100)
#add_compile_options(/sdl)
else()
# additional warnings
add_compile_options(-Wall -Wextra -Wpedantic)
Expand All @@ -73,27 +71,3 @@ add_subdirectory("OdbDesignLib")
add_subdirectory("OdbDesignServer")
add_subdirectory("Utils")
add_subdirectory("OdbDesignTests")

#
# Doxygen
#
find_package(Doxygen)

if (DOXYGEN_FOUND)
# set input and output files
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/doxygen/Doxyfile.in)
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.out)

# request to configure the file
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
message("Configuring Doxygen")

# Note: do not put "ALL" - this builds docs together with application EVERY TIME!
add_custom_target( docs
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen"
VERBATIM )
else (DOXYGEN_FOUND)
message("Doxygen needs to be installed to generate the doxygen documentation")
endif (DOXYGEN_FOUND)
96 changes: 7 additions & 89 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,33 +36,15 @@
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "python-x64-debug",
"displayName": "Python x64 Debug",
"inherits": "x64-debug",
"cacheVariables": {
"PYTHON_MODULE_BUILD": true,
"CMAKE_POSITION_INDENPENDENT_CODE": true
}
},
},
{
"name": "x64-release",
"displayName": "x64 Release",
"inherits": "x64-debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "python-x64-release",
"displayName": "Python x64 Release",
"inherits": "x64-release",
"cacheVariables": {
"PYTHON_MODULE_BUILD": true,
"CMAKE_POSITION_INDENPENDENT_CODE": true
}
},
},
{
"name": "x86-debug",
"displayName": "x86 Debug",
Expand Down Expand Up @@ -123,23 +105,7 @@
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "python-linux-release",
"displayName": "Python Linux Release",
"inherits": "linux-release",
"cacheVariables": {
"PYTHON_MODULE_BUILD": true
}
},
{
"name": "python-linux-debug",
"displayName": "Python Linux Debug",
"inherits": "linux-debug",
"cacheVariables": {
"PYTHON_MODULE_BUILD": true
}
},
},
{
"name": "linux-mingw-w64-debug",
"displayName": "Linux MinGW-w64 Debug",
Expand Down Expand Up @@ -235,19 +201,7 @@
"displayName": "x86 Release",
"inherits": "windows-base",
"configurePreset": "x86-release"
},
{
"name": "python-x64-debug",
"displayName": "Python x64 Debug",
"inherits": "windows-base",
"configurePreset": "python-x64-debug"
},
{
"name": "python-x64-release",
"displayName": "Python x64 Release",
"inherits": "windows-base",
"configurePreset": "python-x64-release"
},
},
{
"name": "linux-base",
"hidden": true,
Expand All @@ -268,19 +222,7 @@
"displayName": "Linux Release",
"configurePreset": "linux-release",
"inherits": "linux-base"
},
{
"name": "python-linux-debug",
"displayName": "Python Linux Debug",
"configurePreset": "python-linux-debug",
"inherits": "linux-base"
},
{
"name": "python-linux-release",
"displayName": "Python Linux Release",
"configurePreset": "python-linux-release",
"inherits": "linux-base"
},
},
{
"name": "linux-mingw-w64-base",
"hidden": true,
Expand Down Expand Up @@ -357,19 +299,7 @@
"displayName": "Test x86-Release",
"inherits": "windows-base",
"configurePreset": "x86-release"
},
{
"name": "python-x64-debug",
"displayName": "Test Python x64 Debug",
"inherits": "windows-base",
"configurePreset": "python-x64-debug"
},
{
"name": "python-x64-release",
"displayName": "Test Python x64 Release",
"inherits": "windows-base",
"configurePreset": "python-x64-release"
},
},
{
"name": "linux-base",
"hidden": true,
Expand All @@ -390,19 +320,7 @@
"displayName": "Test Linux Release",
"configurePreset": "linux-release",
"inherits": "linux-base"
},
{
"name": "python-linux-debug",
"displayName": "Test Python Linux Debug",
"configurePreset": "python-linux-debug",
"inherits": "linux-base"
},
{
"name": "python-linux-release",
"displayName": "Test Python Linux Release",
"configurePreset": "python-linux-release",
"inherits": "linux-base"
},
},
{
"name": "linux-mingw-w64-base",
"hidden": true,
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM debian:bookworm-20240211-slim@sha256:d02c76d82364cedca16ba3ed6f9102406fa9fa8833076a609cabf14270f43dfc AS build
FROM --platform=$BUILDPLATFORM debian:bookworm-20240408-slim@sha256:3d5df92588469a4c503adbead0e4129ef3f88e223954011c2169073897547cac AS build

ARG OWNER=nam20485
ARG GITHUB_TOKEN="PASSWORD"
Expand Down Expand Up @@ -66,7 +66,7 @@ RUN cmake --build --preset linux-release
# RUN cmake --build --preset linux-debug

# much smaller runtime image
FROM --platform=$BUILDPLATFORM debian:bookworm-20240211-slim@sha256:d02c76d82364cedca16ba3ed6f9102406fa9fa8833076a609cabf14270f43dfc AS run
FROM --platform=$BUILDPLATFORM debian:bookworm-20240408-slim@sha256:3d5df92588469a4c503adbead0e4129ef3f88e223954011c2169073897547cac AS run
# ARG ODBDESIGN_SERVER_REQUEST_USERNAME=""
# ARG ODBDESIGN_SERVER_REQUEST_PASSWORD=""
LABEL org.opencontainers.image.source=https://github.com/nam20485/OdbDesign \
Expand Down
Loading
Loading