Skip to content

Commit

Permalink
gha macos: use ccache when building libsndfile et al
Browse files Browse the repository at this point in the history
  • Loading branch information
dyfer committed Aug 7, 2021
1 parent 4307deb commit 4d4c3db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -283,39 +283,39 @@ jobs:
cd ogg*/
echo "*** building libogg ***"
mkdir build && cd build
cmake -G"Xcode" -DBUILD_FRAMEWORK=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake -G"Xcode" -DBUILD_FRAMEWORK=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 -DRULE_LAUNCH_COMPILE=ccache -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake --build . --config Release --target install
cd $GITHUB_WORKSPACE/..
curl -L https://github.com/xiph/flac/archive/refs/tags/1.3.3.tar.gz --output flac.tar.xz
tar xfvz flac.tar.xz
cd flac*/
echo "*** building flac ***"
cd build # build directory already exists
cmake -G"Xcode" -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake -G"Xcode" -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 -DRULE_LAUNCH_COMPILE=ccache -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake --build . --config Release --target install
cd $GITHUB_WORKSPACE/..
curl -L https://github.com/xiph/opus/archive/refs/tags/v1.3.1.tar.gz --output opus.tar.gz
tar xfvz opus.tar.gz
cd opus*/
echo "*** building opus ***"
mkdir build && cd build
cmake -G"Xcode" -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake -G"Xcode" -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_C_FLAGS="-Wall -Wextra" -DRULE_LAUNCH_COMPILE=ccache -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake --build . --config Release --target install
cd $GITHUB_WORKSPACE/..
curl -L https://github.com/xiph/vorbis/releases/download/v1.3.7/libvorbis-1.3.7.tar.gz --output libvorbis.tar.gz
tar xfvz libvorbis.tar.gz
cd libvorbis*/
echo "building *** libvorbis ***"
mkdir build && cd build
cmake -G"Xcode" -DBUILD_FRAMEWORK=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake -G"Xcode" -DBUILD_FRAMEWORK=OFF -DBUILD_SHARED_LIBS=OFF -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_C_FLAGS="-Wall -Wextra" -DRULE_LAUNCH_COMPILE=ccache -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake --build . --config Release --target install
cd $GITHUB_WORKSPACE/..
curl -L https://github.com/libsndfile/libsndfile/releases/download/1.0.31/libsndfile-1.0.31.tar.bz2 --output libsndfile.tar.bz2
tar xfvz libsndfile.tar.bz2
cd libsndfile*/
echo "building libsndfile"
mkdir build && cd build
cmake -G"Xcode" -DBUILD_SHARED_LIBS=ON -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake -G"Xcode" -DBUILD_SHARED_LIBS=ON -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_C_FLAGS="-Wall -Wextra" -DRULE_LAUNCH_COMPILE=ccache -DCMAKE_INSTALL_PREFIX=/usr/local ..
cmake --build . --config Release --target install
- name: install system libraries
if: env.USE_SYSLIBS == 'true'
Expand Down

0 comments on commit 4d4c3db

Please sign in to comment.