Skip to content

Commit 9ada20e

Browse files
authored
Merge pull request #414 from 3MFConsortium/pre_merge_master_with_2.4.1
Merge 2.4.1 into master
2 parents 5746aa3 + aa7a7d6 commit 9ada20e

File tree

439 files changed

+173092
-28903
lines changed

Some content is hidden

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

439 files changed

+173092
-28903
lines changed

.clang-format

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
BasedOnStyle: Google
2+
IndentWidth: 4
3+
AllowShortFunctionsOnASingleLine: Inline
4+
PointerAlignment: Left
5+
SpaceBeforeParens: Never
6+
SpacesInParentheses: false
7+
MaxEmptyLinesToKeep: 1
8+
BreakBeforeBraces: Allman
9+
DerivePointerAlignment: true
10+
AlignAfterOpenBracket: Align
11+
BreakConstructorInitializers: BeforeColon
12+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
13+
NamespaceIndentation: All
14+
SortIncludes: true

.github/workflows/build.yml

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,12 @@ jobs:
130130
ZIP_FILE=$(ls build/lib3mf-*.zip)
131131
echo "ARTIFACT_NAME=$(basename ${ZIP_FILE})" >> $GITHUB_ENV
132132
shell: bash
133+
- run: ls -al build/
133134
- name: Archive Mac binary
134135
uses: actions/upload-artifact@v4
135136
with:
136137
name: lib3mf.dylib
137-
path: build/lib3mf.dylib
138+
path: build/lib3mf.${{ env.LIB3MF_VERSION }}.0.dylib
138139
- name: Upload Artifact (CPacked Archive)
139140
uses: actions/upload-artifact@v4
140141
with:
@@ -184,7 +185,7 @@ jobs:
184185
with:
185186
token: ${{ secrets.CODECOV_TOKEN }}
186187
files: ./build/Test_CPP_Bindings_filtered.info
187-
fail_ci_if_error: true # optional (default = false)
188+
fail_ci_if_error: false # optional (default = false)
188189
verbose: true # optional (default = false)
189190

190191
build-windows-release:
@@ -301,7 +302,7 @@ jobs:
301302
uses: actions/download-artifact@v4
302303
with:
303304
path: ./build
304-
- run: ls -Rl ./build
305+
- run: ls -Rlh ./build
305306
- run: unzip bindings.zip/bindings.zip
306307
working-directory: ./build
307308
- run: bash SDK/GenerateSDK_github.sh
@@ -396,6 +397,17 @@ jobs:
396397
cd SDK/CPackExamples/Cpp/build
397398
cmake --build .
398399
./Example_ExtractInfo ../../../Examples/Files/Helix.3mf
400+
- name: Setup Go
401+
uses: actions/setup-go@v4
402+
with:
403+
go-version: '1.20'
404+
- name: Go Bindings
405+
run: |
406+
cd SDK/Examples/Go
407+
go mod init lib3mfExamples
408+
go get github.com/3MFConsortium/lib3mf.go/v2@v2.4.1
409+
go build -o create_cube create_cube.go
410+
./create_cube
399411
400412
deploy-windows:
401413
runs-on: windows-2019
@@ -450,6 +462,18 @@ jobs:
450462
cd SDK/CPackExamples/Cpp/build
451463
cmake --build . --config Release
452464
./Release/Example_ExtractInfo.exe ../../../Examples/Files/Helix.3mf
465+
- name: Setup Go
466+
uses: actions/setup-go@v4
467+
with:
468+
go-version: '1.20'
469+
- name: Go Bindings
470+
run: |
471+
cd SDK/Examples/Go
472+
go mod init lib3mfExamples
473+
go get github.com/3MFConsortium/lib3mf.go/v2@v2.4.1
474+
go build -o create_cube.exe create_cube.go
475+
./create_cube.exe
476+
453477
454478
deploy-macos:
455479
runs-on: macos-latest
@@ -470,6 +494,7 @@ jobs:
470494
sh Examples/CppDynamic/GenerateMake.sh
471495
cd Examples/CppDynamic/build
472496
cmake --build .
497+
ls -al
473498
./Example_ExtractInfo ../../Files/Helix.3mf
474499
- name: Build Cpp
475500
run: |
@@ -505,6 +530,17 @@ jobs:
505530
cd SDK/CPackExamples/Cpp/build
506531
cmake --build .
507532
./Example_ExtractInfo ../../../Examples/Files/Helix.3mf
533+
- name: Setup Go
534+
uses: actions/setup-go@v4
535+
with:
536+
go-version: '1.20'
537+
- name: Go Bindings
538+
run: |
539+
cd SDK/Examples/Go
540+
go mod init lib3mfExamples
541+
go get github.com/3MFConsortium/lib3mf.go/v2@v2.4.1
542+
go build -o create_cube create_cube.go
543+
./create_cube
508544
509545
deploy-source-code-with-submodules:
510546
runs-on: ubuntu-20.04
@@ -662,6 +698,8 @@ jobs:
662698
- name: Unpack the second latest SDK
663699
run: |
664700
unzip second_latest_lib3mf_sdk.zip -d second_latest_lib3mf_sdk
701+
mv second_latest_lib3mf_sdk/lib3mf_sdk/* second_latest_lib3mf_sdk
702+
rmdir second_latest_lib3mf_sdk/lib3mf_sdk
665703
666704
- name: Download and unzip test suite
667705
run: |
@@ -690,6 +728,8 @@ jobs:
690728
691729
- name: Build and run CppDynamic with second latest SDK
692730
run: |
731+
ls -al
732+
ls -al second_latest_lib3mf_sdk
693733
sh second_latest_lib3mf_sdk/Examples/CppDynamic/GenerateMake.sh
694734
cd second_latest_lib3mf_sdk/Examples/CppDynamic/build
695735
cmake --build .

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,14 @@ Include/Model/COM/NMR_COMVersion.h
55
debug
66
.DS_Store
77
.vscode
8+
TestOutput
9+
nonrootmodels.3mf
10+
SetupWriteRead1.3mf
11+
SetupWriteRead2.3mf
12+
SetupWriteRead3.3mf
13+
SetupWriteRead4.3mf
14+
SetupWriteRead5.3mf
15+
v093reout.3mf
16+
.vs
817
.idea
918
cmake-build-*

.gitmodules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@
1616
[submodule "submodules/googletest"]
1717
path = submodules/googletest
1818
url = https://github.com/google/googletest.git
19+

0 commit comments

Comments
 (0)