Skip to content

Commit

Permalink
Merge branch 'main' into fem_test_partial_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
FEA-eng authored Apr 16, 2024
2 parents ab68d93 + a4dd600 commit eed5bd8
Show file tree
Hide file tree
Showing 206 changed files with 14,333 additions and 1,468 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/PROBLEM_REPORT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ body:
- FEM
- File formats
- GCS
- Mesh
- OpenSCAD
- Part
- PartDesign
Expand Down
66 changes: 42 additions & 24 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,67 +3,85 @@
# - any: ['src/**/*', '!src/docs/*']

Core:
- 'src/App/**/*'
- 'src/Base/**/*'
- 'src/Gui/**/*'
- changed-files:
- any-glob-to-any-file: ['src/App/**/*', 'src/Base/**/*', 'src/Gui/**/*']

:octocat::
- '.github/**/*'
- changed-files:
- any-glob-to-any-file: ['.github/**/*']

Addon Manager:
- 'src/Mod/AddonManager/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/AddonManager/**/*']

Materials:
- 'src/Mod/Material/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/Material/**/*']

WB Arch:
- 'src/Mod/Arch/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/Arch/**/*']

WB Assembly:
- 'src/Mod/Assembly/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/Assembly/**/*']

WB Draft:
- 'src/Mod/Draft/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/Draft/**/*']

WB FEM:
- 'src/Mod/Fem/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/Fem/**/*']

WB Mesh:
- 'src/Mod/Mesh/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/Mesh/**/*']

WB MeshPart:
- 'src/Mod/MeshPart/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/MeshPart/**/*']

WB OpenSCAD:
- 'src/Mod/OpenSCAD/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/OpenSCAD/**/*']

WB Part:
- 'src/Mod/Part/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/Part/**/*']

WB Part Design:
- 'src/Mod/PartDesign/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/PartDesign/**/*']

WB CAM:
- 'src/Mod/CAM/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/CAM/**/*']

WB Points:
- 'src/Mod/Points/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/Points/**/*']

WB ReverseEngineering:
- 'src/Mod/ReverseEngineering/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/ReverseEngineering/**/*']

WB Sketcher:
- 'src/Mod/Sketcher/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/Sketcher/**/*']

WB Spreadsheet:
- 'src/Mod/Spreadsheet/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/Spreadsheet/**/*']

WB Surface:
- 'src/Mod/Surface/**/*/'
- changed-files:
- any-glob-to-any-file: ['src/Mod/Surface/**/*/']

WB TechDraw:
- 'src/Mod/TechDraw/**/*'
- changed-files:
- any-glob-to-any-file: ['src/Mod/TechDraw/**/*']

WB Test:
- 'src/Mod/Test/**/*'

- changed-files:
- any-glob-to-any-file: ['src/Mod/Test/**/*']
23 changes: 11 additions & 12 deletions .github/workflows/CI_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,17 @@ jobs:
with:
artifactBasename: Prepare-${{ github.run_id }}

# GA in Jan-Mar 2024 Timeframe: https://github.com/actions/runner-images/issues/8439#issuecomment-1755601587
# MacOS_13_Conda_Apple:
# needs: [Prepare]
# uses: ./.github/workflows/sub_buildMacOSCondaApple.yml
# with:
# artifactBasename: MacOS_13_Conda_Apple-${{ github.run_id }}

MacOS_13_Conda_Intel:
MacOS_13_Conda_Apple:
needs: [Prepare]
uses: ./.github/workflows/sub_buildMacOSCondaIntel.yml
uses: ./.github/workflows/sub_buildMacOSCondaApple.yml
with:
artifactBasename: MacOS_13_Conda_Intel-${{ github.run_id }}
artifactBasename: MacOS_13_Conda_Apple-${{ github.run_id }}

# MacOS_13_Conda_Intel:
# needs: [Prepare]
# uses: ./.github/workflows/sub_buildMacOSCondaIntel.yml
# with:
# artifactBasename: MacOS_13_Conda_Intel-${{ github.run_id }}

Ubuntu_20-04:
needs: [Prepare]
Expand Down Expand Up @@ -88,8 +87,8 @@ jobs:
WrapUp:
needs: [
Prepare,
# MacOS_13_Conda_Apple,
MacOS_13_Conda_Intel,
MacOS_13_Conda_Apple,
# MacOS_13_Conda_Intel,
Ubuntu_20-04,
Ubuntu_22-04_Conda,
Windows,
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/sub_buildMacOSCondaApple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ on:

jobs:
Build:
runs-on: macos-13-xlarge
runs-on: macos-14
continue-on-error: ${{ inputs.allowedToFail }}
env:
CCACHE_DIR: ${{ github.workspace }}/ccache
Expand All @@ -72,6 +72,8 @@ jobs:
with:
submodules: true
- name: Setup Miniconda
env:
CONDA_VERBOSITY: 2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: .conda/freecad
Expand All @@ -80,6 +82,8 @@ jobs:
channel-priority: true
miniforge-version: latest
- name: Install FreeCAD dependencies
env:
CONDA_VERBOSITY: 2
run: |
./conda/setup-environment.sh
- name: Set Environment Variables
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sub_buildMacOSCondaIntel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ jobs:
with:
submodules: true
- name: Setup Miniconda
env:
CONDA_VERBOSITY: 2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: .conda/freecad
Expand All @@ -80,6 +82,8 @@ jobs:
channel-priority: true
miniforge-version: latest
- name: Install FreeCAD dependencies
env:
CONDA_VERBOSITY: 2
run: |
./conda/setup-environment.sh
- name: Set Environment Variables
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sub_buildUbuntu2204Conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
with:
submodules: true
- name: Setup Miniconda
env:
CONDA_VERBOSITY: 2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: .conda/freecad
Expand All @@ -78,6 +80,8 @@ jobs:
channel-priority: true
miniforge-version: latest
- name: Install FreeCAD dependencies
env:
CONDA_VERBOSITY: 2
run: |
./conda/setup-environment.sh
- name: Set Environment Variables
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/sub_buildWindowsConda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
with:
submodules: true
- name: Setup Miniconda
env:
CONDA_VERBOSITY: 2
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: .conda/freecad
Expand All @@ -73,6 +75,8 @@ jobs:
channel-priority: true
miniforge-version: latest
- name: Install FreeCAD dependencies
env:
CONDA_VERBOSITY: 2
run: |
conda config --add envs_dirs $PWD/.conda
mamba-devenv -f conda/environment.devenv.yml
Expand Down
10 changes: 10 additions & 0 deletions cMake/FreeCAD_Helpers/InitializeFreeCADBuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ macro(InitializeFreeCADBuildOptions)
option(BUILD_CLOUD "Build the FreeCAD cloud module" OFF)
option(ENABLE_DEVELOPER_TESTS "Build the FreeCAD unit tests suit" ON)

if(MSVC)
set(FREECAD_3CONNEXION_SUPPORT "NavLib" CACHE STRING "Select version of the 3Dconnexion device integration")
set_property(CACHE FREECAD_3CONNEXION_SUPPORT PROPERTY STRINGS "NavLib" "SpNav")
endif(MSVC)

if(MSVC)
option(BUILD_FEM_NETGEN "Build the FreeCAD FEM module with the NETGEN mesher" ON)
option(FREECAD_USE_PCL "Build the features that use PCL libs" OFF) # 3/5/2021 current LibPack uses non-C++17 FLANN
Expand All @@ -157,6 +162,11 @@ macro(InitializeFreeCADBuildOptions)
option(FREECAD_USE_PCL "Build the features that use PCL libs" OFF)
endif(NOT MSVC)

if(FREECAD_3CONNEXION_SUPPORT STREQUAL "NavLib" AND FREECAD_USE_3DCONNEXION)
set(FREECAD_USE_3DCONNEXION_NAVLIB ON)
set(FREECAD_USE_3DCONNEXION OFF)
endif()

# if this is set override some options
if (FREECAD_BUILD_DEBIAN)
set(FREECAD_USE_EXTERNAL_ZIPIOS ON )
Expand Down
8 changes: 7 additions & 1 deletion cMake/FreeCAD_Helpers/PrintFinalReport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,13 @@ macro(PrintFinalReport)
simple(Coin3D "${COIN3D_VERSION} [${COIN3D_LIBRARIES}] [${COIN3D_INCLUDE_DIRS}]")
simple(pivy ${PIVY_VERSION})
if (WIN32)
#simple(SPNAV "not available yet for your OS") # FREECAD_USE_3DCONNEXION instead...
if (FREECAD_USE_3DCONNEXION)
simple(3Dconnexion "Building 3Dconnexion support with original code")
elseif(FREECAD_USE_3DCONNEXION_NAVLIB)
simple(3Dconnexion "Building 3Dconnexion support with NavLib")
else()
simple(3Dconnexion "Not building 3Dconnexion device support")
endif()
else()
conditional(SPNAV SPNAV_FOUND "not found" "[${SPNAV_LIBRARY}] [${SPNAV_INCLUDE_DIR}]")
endif()
Expand Down
2 changes: 1 addition & 1 deletion data/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ADD_CUSTOM_TARGET(Example_data ALL

# 0001097: CMake stops with error "Circular ... <- ... dependency dropped."
if(NOT "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
fc_copy_sources(Example_data "${CMAKE_BINARY_DIR}/data/examples" ${Examples_Files})
fc_copy_sources(Example_data "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/examples" ${Examples_Files})
endif()

if (WIN32 AND FREECAD_LIBPACK_USE)
Expand Down
3 changes: 3 additions & 0 deletions src/3rdParty/3Dconnexion/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This directory contains part of the the 3Dconnexion 3DxWare_SDK v4
The full sdk can be obtained from https://3dconnexion.com/software-developer-program/

Loading

0 comments on commit eed5bd8

Please sign in to comment.