Skip to content

Commit 46be046

Browse files
committed
build examples in GitHub Actions pipeline
1 parent a89ca50 commit 46be046

File tree

81 files changed

+444
-79
lines changed

Some content is hidden

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

81 files changed

+444
-79
lines changed

Examples/Calculator/Calculator_component/Bindings/CppDynamic/calculator_dynamic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2019 Calculator developers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.0-develop.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.1-develop.
88
99
Abstract: This is an autogenerated C++-Header file in order to allow an easy
1010
use of Calculator library

Examples/Calculator/Calculator_component/Bindings/CppDynamic/calculator_dynamic.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2019 Calculator developers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.0-develop.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.1-develop.
88
99
Abstract: This is an autogenerated C++-Header file in order to allow an easy
1010
use of Calculator library
@@ -350,6 +350,8 @@ class CBase {
350350

351351
friend class CWrapper;
352352
inline Calculator_uint64 ClassTypeId();
353+
354+
protected:
353355
};
354356

355357
/*************************************************************************************************************************

Examples/Calculator/Calculator_component/Bindings/CppDynamic/calculator_types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2019 Calculator developers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.0-develop.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.1-develop.
88
99
Abstract: This is an autogenerated C++-Header file with basic types in
1010
order to allow an easy use of Calculator library

Examples/Calculator/Calculator_component/Bindings/Pascal/Unit_Calculator.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
All rights reserved.
77
8-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.0-develop.
8+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.1-develop.
99
1010
Abstract: This is an autogenerated Pascal Header file in order to allow an easy
1111
use of Calculator library

Examples/Calculator/Calculator_component/Bindings/Python/Calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.0-develop.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.1-develop.
88
99
Abstract: This is an autogenerated Python file in order to allow an easy
1010
use of Calculator library
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
set -euxo pipefail
4+
5+
cd "$(dirname "$0")"
6+
source ../../../../../Build/build.inc
7+
8+
echo "Build C++ Dynamic example"
9+
10+
[ -d build ] && rm -rf build
11+
mkdir build
12+
pushd build
13+
cmake -H.. -B. -DCMAKE_BUILD_TYPE=Debug
14+
cmake --build .
15+
16+
echo "Test C++ library"
17+
RUN ./CalculatorExample_CPPDynamic ../../../Implementations/Cpp/build
18+
19+
echo "Test Pascal library"
20+
RUN ./CalculatorExample_CPPDynamic ../../../Implementations/Pascal/build
21+
22+
popd
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
set -euxo pipefail
4+
5+
cd "$(dirname "$0")"
6+
source ../../../../../Build/build.inc
7+
8+
echo "Build Pascal example"
9+
rm -rf build
10+
mkdir build
11+
fpc -Fu../../Bindings/Pascal -FU./build -o./build/Calculator_Example$OSEXEEXT Calculator_Example.lpr
12+
13+
pushd build
14+
15+
echo "Test C++ library"
16+
rm -f calculator.dll
17+
ln -s ../../../Implementations/Cpp/build/calculator$OSLIBEXT calculator.dll
18+
RUN ./Calculator_Example .
19+
20+
echo "Test Pascal library"
21+
rm -f calculator.dll
22+
ln -s ../../../Implementations/Pascal/build/calculator$OSLIBEXT calculator.dll
23+
RUN ./Calculator_Example .
24+
25+
popd
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -euxo pipefail
4+
5+
cd "$(dirname "$0")"
6+
source ../../../../../Build/build.inc
7+
8+
echo "Test with available libraries"
9+
if [ -d "$PWD/../../Implementations/Cpp/build" ] && [ -f "$PWD/../../Implementations/Cpp/build/calculator$OSLIBEXT" ]; then
10+
echo "Testing with C++ library"
11+
RUN "python3 Calculator_Example.py" $PWD/../../Implementations/Cpp/build
12+
elif [ -d "$PWD/../../Implementations/Pascal/build" ] && [ -f "$PWD/../../Implementations/Pascal/build/calculator$OSLIBEXT" ]; then
13+
echo "Testing with Pascal library"
14+
RUN "python3 Calculator_Example.py" $PWD/../../Implementations/Pascal/build
15+
else
16+
echo "No library found - skipping Python test (this is normal if no implementations were built)"
17+
fi

Examples/Calculator/Calculator_component/Implementations/Cpp/Interfaces/calculator_abi.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2019 Calculator developers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.0-develop.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.1-develop.
88
99
Abstract: This is an autogenerated C++-Header file in order to allow an easy
1010
use of Calculator library

Examples/Calculator/Calculator_component/Implementations/Cpp/Interfaces/calculator_interfaceexception.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Copyright (C) 2019 Calculator developers
44
55
All rights reserved.
66
7-
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.0-develop.
7+
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.1-develop.
88
99
Abstract: This is an autogenerated C++ Implementation file with the basic internal
1010
exception type in order to allow an easy use of Calculator library

0 commit comments

Comments
 (0)