Skip to content

Commit

Permalink
Update GitHub Actions for MacOS runners
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Feb 23, 2025
1 parent 309335e commit a238616
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,21 +135,24 @@ jobs:
matrix:
build_type: [Release, Debug]
config:
- cc: gcc-11
cxx: g++-11
test_luajit: false
os: macos-11
python3_ver: '3.8'
- cc: gcc-14
cxx: g++-14
os: macos-14
python3_ver: '3.9'

- cc: clang
cxx: clang++
test_luajit: true
os: macos-11
python3_ver: '3.8'
os: macos-14
python3_ver: '3.9'

- cc: clang
cxx: clang++
os: macos-12
os: macos-13
python3_ver: '3.9'

- cc: clang
cxx: clang++
os: macos-15
python3_ver: '3.9'
runs-on: ${{matrix.config.os}}
env:
Expand All @@ -160,10 +163,7 @@ jobs:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
brew install doxygen luajit
which luajit
pip install numpy
pip3 install numpy
brew install --formula doxygen luajit numpy swig
# Installing Lua 5.1 dependencies via package is ugly
cd ${{runner.workspace}}
Expand All @@ -179,9 +179,11 @@ jobs:
- name: Install
run: |
cd ${{github.workspace}}/build
install_name_tool -add_rpath @executable_path/../lib apps/SoapySDRUtil
sudo make install
- name: Run unit tests
run: |
export DYLD_LIBRARY_PATH=/usr/local/lib
cd ${{github.workspace}}/build
ctest --output-on-failure
- name: Test SoapySDRUtil
Expand All @@ -203,8 +205,8 @@ jobs:
python${{matrix.config.python3_ver}} -c "import SoapySDR; print(SoapySDR.errToStr(SoapySDR.SOAPY_SDR_TIMEOUT))"
python${{matrix.config.python3_ver}} -c "import SoapySDR; print(SoapySDR.Device.make('driver=null'))"
- name: Test LuaJIT bindings
if: ${{ matrix.config.test_luajit }}
run: |
export DYLD_LIBRARY_PATH=/usr/local/lib
luajit -e 'SoapySDR = require("SoapySDR"); print(SoapySDR.API_VERSION)'
luajit -e 'SoapySDR = require("SoapySDR"); print(SoapySDR.ABI_VERSION)'
luajit -e 'SoapySDR = require("SoapySDR"); print(SoapySDR.Error.TIMEOUT)'
Expand Down

0 comments on commit a238616

Please sign in to comment.