File tree Expand file tree Collapse file tree 3 files changed +56
-17
lines changed Expand file tree Collapse file tree 3 files changed +56
-17
lines changed Original file line number Diff line number Diff line change 43
43
- name : Install GCC and CMake
44
44
run : |
45
45
sudo apt-get update
46
- sudo apt-get install -y gcc g++ cmake
46
+ sudo apt-get install -y gcc g++ cmake automake
47
47
- name : Make script executable
48
48
run : chmod +x ./tools/build_wheel_linux.sh
49
49
- name : Build TA-Lib
@@ -103,6 +103,7 @@ jobs:
103
103
gcc
104
104
g++
105
105
cmake
106
+ automake
106
107
volumes : ${{ github.workspace }}:/project
107
108
- name : Make script executable
108
109
run : chmod +x ./tools/build_wheel_linux.sh
@@ -237,6 +238,10 @@ jobs:
237
238
- name : Checkout repository
238
239
uses : actions/checkout@v4
239
240
241
+ - name : install automake
242
+ run : brew install automake libtool
243
+ shell : bash
244
+
240
245
- name : Make script executable
241
246
run : chmod +x ./tools/build_wheel_macos.sh
242
247
@@ -287,6 +292,10 @@ jobs:
287
292
- name : Checkout repository
288
293
uses : actions/checkout@v4
289
294
295
+ - name : install automake
296
+ run : brew install automake libtool
297
+ shell : bash
298
+
290
299
- name : Make script executable
291
300
run : chmod +x ./tools/build_wheel_macos.sh
292
301
Original file line number Diff line number Diff line change @@ -27,15 +27,30 @@ cd ta-lib-${TALIB_C_VER}
27
27
mkdir -p include/ta-lib/
28
28
cp include/* .h include/ta-lib/
29
29
30
- # Create build directory
31
- mkdir -p _build
32
- cd _build
33
30
34
- # Use CMake to configure the build
35
- cmake -G " $CMAKE_GENERATOR " -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../../ta-lib-install ..
36
- if [ $? -ne 0 ]; then
37
- echo " CMake configuration failed"
38
- exit 1
31
+
32
+ # for version 0.4.0
33
+ if [ $TALIB_C_VER == " 0.4.0" ]; then
34
+ bash autogen.sh
35
+ # Build TA-Lib using autoconf/configure
36
+ ./configure --prefix=$( pwd) /../ta-lib-install
37
+ if [ $? -ne 0 ]; then
38
+ echo " Configure failed"
39
+ exit 1
40
+ fi
41
+
42
+ else
43
+ # for version 0.6.2
44
+
45
+ # Create build directory
46
+ mkdir -p _build
47
+ cd _build
48
+ # Use CMake to configure the build
49
+ cmake -G " $CMAKE_GENERATOR " -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../../ta-lib-install ..
50
+ if [ $? -ne 0 ]; then
51
+ echo " CMake configuration failed"
52
+ exit 1
53
+ fi
39
54
fi
40
55
41
56
# Compile TA-Lib
Original file line number Diff line number Diff line change @@ -27,15 +27,30 @@ cd ta-lib-${TALIB_C_VER}
27
27
mkdir -p include/ta-lib/
28
28
cp include/* .h include/ta-lib/
29
29
30
- # Create build directory
31
- mkdir -p _build
32
- cd _build
33
30
34
- # Use CMake to configure the build
35
- cmake -G " $CMAKE_GENERATOR " -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../../ta-lib-install ..
36
- if [ $? -ne 0 ]; then
37
- echo " CMake configuration failed"
38
- exit 1
31
+
32
+ # for version 0.4.0
33
+ if [ $TALIB_C_VER == " 0.4.0" ]; then
34
+ bash autogen.sh
35
+ # Build TA-Lib using autoconf/configure
36
+ ./configure --prefix=$( pwd) /../ta-lib-install
37
+ if [ $? -ne 0 ]; then
38
+ echo " Configure failed"
39
+ exit 1
40
+ fi
41
+
42
+ else
43
+ # for version 0.6.2
44
+
45
+ # Create build directory
46
+ mkdir -p _build
47
+ cd _build
48
+ # Use CMake to configure the build
49
+ cmake -G " $CMAKE_GENERATOR " -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../../ta-lib-install ..
50
+ if [ $? -ne 0 ]; then
51
+ echo " CMake configuration failed"
52
+ exit 1
53
+ fi
39
54
fi
40
55
41
56
# Compile TA-Lib
You can’t perform that action at this time.
0 commit comments