Skip to content

Commit

Permalink
Streamlined some of the MacOS build commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Oct 15, 2023
1 parent a484b3f commit 7cdea61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/build-libraries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,15 @@ jobs:
- name: Set up CMake
uses: lukka/get-cmake@latest

- name: Install wget
run: brew install wget

- name: Run the build
run: |
git config --global --add safe.directory $(pwd)
./build_macosx.sh "x86_64" ${ARTIFACT_NAME}
- name: Move tarballs
run: |
mkdir artifacts
mv libaec/libaec-*.tar.gz artifacts
mv libhdf5/libhdf5-*.tar.gz artifacts
./build_macosx.sh "x86_64"
- name: Upload tarballs
uses: actions/upload-artifact@v3
with:
path: artifacts/*.tar.gz
path: installed

build_windows_x86_64:
name: Build Windows (x86_64)
Expand Down
9 changes: 4 additions & 5 deletions build_macosx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@ set -e
set -u

arch=${1}
package_name=${2}

mkdir installs
install_dir=$(pwd)/installs

./setup_aec.sh "-DCMAKE_OSX_ARCHITECTURES=${arch} -DCPACK_PACKAGE_FILE_NAME=libaec-${package_name} -DCMAKE_INSTALL_PREFIX=${install_dir}"
common="-DCMAKE_OSX_ARCHITECTURES=${arch} -DCMAKE_INSTALL_PREFIX=${install_dir}"

./setup_aec.sh ${common}
cd libaec
cmake --install build
cpack -G TGZ --config build/CPackConfig.cmake
cd -

./setup_hdf5.sh "-DCMAKE_OSX_ARCHITECTURES=${arch} -DCPACK_PACKAGE_FILE_NAME=libhdf5-${package_name} -DCMAKE_INSTALL_PREFIX=${install_dir}"
./setup_hdf5.sh ${common}
cd libhdf5
cmake --install build
cpack -G TGZ --config build/CPackConfig.cmake
cd -
1 change: 0 additions & 1 deletion setup_hdf5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ curl -L https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_12_2.tar.gz >
tar -xf bundle.tar.gz
rm bundle.tar.gz

cwd=$(pwd)
mv hdf5-hdf5-1_12_2/ libhdf5
cd libhdf5

Expand Down

0 comments on commit 7cdea61

Please sign in to comment.