Skip to content

Commit

Permalink
Improve GitHub Actions Build Script to Install Required Xcode CLI Too…
Browse files Browse the repository at this point in the history
…ls and Packages
  • Loading branch information
njfdev committed Aug 22, 2024
1 parent d735f43 commit 1fe7352
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
matrix:
include:
- platform: "macos-latest" # for Arm based Macs
args: "--target aarch64-apple-darwin"
args: ""
- platform: "macos-13" # for Intel based Macs
args: "--target x86_64-apple-darwin"
args: ""
- platform: "ubuntu-22.04"
args: ""
# Issues with getting SoapySDR Libraries Installed on Windows
Expand All @@ -38,7 +38,13 @@ jobs:
run: |
brew tap pothosware/homebrew-pothos
brew update
brew install cmake autoconf automake libtool git librtlsdr libao fftw soapyrtlsdr libusb
brew install pkg-config cmake autoconf automake libtool git librtlsdr libao fftw soapyrtlsdr libusb
- name: Set Up Xcode CLI Tools
run: |
sudo xcode-select --install
export SDKROOT=$(xcrun --show-sdk-path)
export MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | awk -F '.' '{print $1 "." $2}')
- name: Install Dependencies (Ubuntu Only)
if: matrix.platform == 'ubuntu-22.04'
Expand Down
2 changes: 0 additions & 2 deletions build_scripts/build_app_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ if [[ "$OS" == "Linux" ]]; then
LIB_EXT=".so"
elif [[ "$OS" == "Darwin" ]]; then
LIB_EXT=".dylib"
# this should help fix a possible build error for macOS
SDKROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"
elif [[ "$OS" == "CYGWIN"* || "$OS" == "MINGW"* || "$OS" == "MSYS"* ]]; then
LIB_EXT=".dll"
else
Expand Down

0 comments on commit 1fe7352

Please sign in to comment.