Skip to content

Commit 78aa518

Browse files
committed
Streamlined some of the MacOS build commands.
1 parent a484b3f commit 78aa518

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

.github/workflows/build-libraries.yaml

+2-11
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,15 @@ jobs:
2020
- name: Set up CMake
2121
uses: lukka/get-cmake@latest
2222

23-
- name: Install wget
24-
run: brew install wget
25-
2623
- name: Run the build
2724
run: |
2825
git config --global --add safe.directory $(pwd)
29-
./build_macosx.sh "x86_64" ${ARTIFACT_NAME}
30-
31-
- name: Move tarballs
32-
run: |
33-
mkdir artifacts
34-
mv libaec/libaec-*.tar.gz artifacts
35-
mv libhdf5/libhdf5-*.tar.gz artifacts
26+
./build_macosx.sh "x86_64"
3627
3728
- name: Upload tarballs
3829
uses: actions/upload-artifact@v3
3930
with:
40-
path: artifacts/*.tar.gz
31+
path: installed
4132

4233
build_windows_x86_64:
4334
name: Build Windows (x86_64)

build_macosx.sh

+6-7
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@ set -e
44
set -u
55

66
arch=${1}
7-
package_name=${2}
87

9-
mkdir installs
10-
install_dir=$(pwd)/installs
8+
mkdir installed
9+
install_dir=$(pwd)/installed
1110

12-
./setup_aec.sh "-DCMAKE_OSX_ARCHITECTURES=${arch} -DCPACK_PACKAGE_FILE_NAME=libaec-${package_name} -DCMAKE_INSTALL_PREFIX=${install_dir}"
11+
common="-DCMAKE_OSX_ARCHITECTURES=${arch} -DCMAKE_INSTALL_PREFIX=${install_dir}"
12+
13+
./setup_aec.sh "${common}"
1314
cd libaec
1415
cmake --install build
15-
cpack -G TGZ --config build/CPackConfig.cmake
1616
cd -
1717

18-
./setup_hdf5.sh "-DCMAKE_OSX_ARCHITECTURES=${arch} -DCPACK_PACKAGE_FILE_NAME=libhdf5-${package_name} -DCMAKE_INSTALL_PREFIX=${install_dir}"
18+
./setup_hdf5.sh "${common}"
1919
cd libhdf5
2020
cmake --install build
21-
cpack -G TGZ --config build/CPackConfig.cmake
2221
cd -

setup_hdf5.sh

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ curl -L https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_12_2.tar.gz >
99
tar -xf bundle.tar.gz
1010
rm bundle.tar.gz
1111

12-
cwd=$(pwd)
1312
mv hdf5-hdf5-1_12_2/ libhdf5
1413
cd libhdf5
1514

0 commit comments

Comments
 (0)