@@ -49,17 +49,19 @@ jobs:
4949 run : |
5050 mkdir build
5151 cd build
52- cmake .. -DIQTREE_FLAGS=static -DCMAKE_C_COMPILER=$(which gcc-${{ matrix.gcc-version }}) -DCMAKE_CXX_COMPILER=$(which g++-${{ matrix.gcc-version }})
52+ cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 - DIQTREE_FLAGS=static -DCMAKE_C_COMPILER=$(which gcc-${{ matrix.gcc-version }}) -DCMAKE_CXX_COMPILER=$(which g++-${{ matrix.gcc-version }})
5353 make -j
54- file iqtree2 | grep x86-64
54+ make package
55+ file iqtree3 | grep x86-64
56+ file iqtree*.tar.gz | grep gzip
5557
5658 - name : Upload Built Binary
5759 # Only upload for one of the gcc & cmake tests
5860 if : ${{ matrix.upload }}
5961 uses : actions/upload-artifact@v4
6062 with :
6163 name : Linux x86-64
62- path : build/iqtree2
64+ path : build/iqtree*.tar.gz
6365 if-no-files-found : error
6466
6567 build-linux-aarch64 :
@@ -83,13 +85,15 @@ jobs:
8385 cd build
8486 cmake .. -DIQTREE_FLAGS=static
8587 make -j
86- file iqtree2 | grep aarch64
88+ make package
89+ file iqtree3 | grep aarch64
90+ file iqtree*.tar.gz | grep gzip
8791
8892 - name : Upload Built Binary
8993 uses : actions/upload-artifact@v4
9094 with :
9195 name : Linux AArch64
92- path : build/iqtree2
96+ path : build/iqtree*.tar.gz
9397 if-no-files-found : error
9498
9599 build-macos-x86_64 :
@@ -110,18 +114,19 @@ jobs:
110114 set -x
111115 mkdir build
112116 cd build
113- export LDFLAGS="-L/usr/local/opt/libomp/lib"
114117 export CPPFLAGS="-I/usr/local/opt/libomp/include"
115118 export CXXFLAGS="-I/usr/local/opt/libomp/include"
116119 cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
117- gmake -j
118- file iqtree2 | grep x86_64
120+ make -j
121+ make package
122+ file iqtree3 | grep x86_64
123+ file iqtree*.zip | grep Zip
119124
120125 - name : Upload Built Binary
121126 uses : actions/upload-artifact@v4
122127 with :
123128 name : Mac x86-64
124- path : build/iqtree2
129+ path : build/iqtree*.zip
125130 if-no-files-found : error
126131
127132 build-macos-arm :
@@ -142,18 +147,19 @@ jobs:
142147 set -x
143148 mkdir build
144149 cd build
145- export LDFLAGS="-L/opt/homebrew/opt/libomp/lib"
146150 export CPPFLAGS="-I/opt/homebrew/opt/libomp/include"
147151 export CXXFLAGS="-I/opt/homebrew/opt/libomp/include"
148152 cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
149- gmake -j
150- file iqtree2 | grep arm64
153+ make -j
154+ make package
155+ file iqtree3 | grep arm64
156+ file iqtree*.zip | grep Zip
151157
152158 - name : Upload Built Binary
153159 uses : actions/upload-artifact@v4
154160 with :
155161 name : Mac Arm
156- path : build/iqtree2
162+ path : build/iqtree*.zip
157163 if-no-files-found : error
158164
159165 compile-mac-universal :
@@ -164,22 +170,33 @@ jobs:
164170 - build-macos-arm
165171
166172 steps :
167- - name : Download Artifacts
173+ - name : Checkout
174+ uses : actions/checkout@v4
175+
176+ - name : Download Mac x86-64 Artifact
168177 uses : actions/download-artifact@v4
169178 with :
170- pattern : Mac *
171-
179+ name : Mac x86-64
180+ path : x86
181+
182+ - name : Download Mac Arm Artifact
183+ uses : actions/download-artifact@v4
184+ with :
185+ name : Mac Arm
186+ path : arm
187+
172188 - name : Combine Artifacts
173- run : lipo -create -output iqtree2 "Mac x86-64/iqtree2" "Mac Arm/iqtree2"
174-
175- - name : Check Architectures
176- run : lipo -archs iqtree2
177-
189+ run : |
190+ chmod +x test_scripts/make_universal.sh
191+ file1=$(ls x86/iqtree*.zip)
192+ file2=$(ls arm/iqtree*.zip)
193+ test_scripts/make_universal.sh "$file1" "$file2"
194+
178195 - name : Upload Built Binary
179196 uses : actions/upload-artifact@v4
180197 with :
181198 name : Mac Universal
182- path : iqtree2
199+ path : iqtree*.zip
183200 if-no-files-found : error
184201
185202 build-windows-x86-64 :
@@ -221,20 +238,23 @@ jobs:
221238 -DCMAKE_MAKE_PROGRAM=mingw32-make ^
222239 -DBoost_INCLUDE_DIR=${{steps.install-boost.outputs.BOOST_ROOT}}/include ^
223240 -DBoost_LIBRARY_DIRS=${{steps.install-boost.outputs.BOOST_ROOT}}/lib ^
224- -DIQTREE_FLAGS="cpp14" ..
241+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5 ^
242+ -DIQTREE_FLAGS="static cpp14" ..
225243 make -j
244+ make package
226245 env :
227246 BOOST_ROOT : ${{ steps.install-boost.outputs.BOOST_ROOT }}
228247
229248 - name : Check File Arch
230249 shell : bash
231250 run : |
232251 cd build
233- file iqtree2.exe | grep x86-64
252+ file iqtree3.exe | grep x86-64
253+ file iqtree*.zip
234254
235255 - name : Upload Built Binary
236256 uses : actions/upload-artifact@v4
237257 with :
238258 name : Windows x86-64
239- path : build/iqtree2.exe
259+ path : build/iqtree*.zip
240260 if-no-files-found : error
0 commit comments