test #12 #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
env: | |
SDRPLAY_SOFTWARE_DOWNLOADS: 'https://www.sdrplay.com/software' | |
jobs: | |
macos-test: | |
name: MacOS test | |
runs-on: macos-latest | |
steps: | |
- name: Check MacOS version | |
run: sw_vers | |
- name: Install SDRplay API 3.X | |
env: | |
SDRPLAY_API_FILE_MACOS: SDRplayAPI-macos-installer-universal-3.15.0.pkg | |
run: | | |
curl -s -S -O "$SDRPLAY_SOFTWARE_DOWNLOADS/$SDRPLAY_API_FILE_MACOS" | |
sudo installer -pkg "$SDRPLAY_API_FILE_MACOS" -target / | |
- name: Check SDRplay API install | |
run: | | |
ls -l /usr/local/lib | |
echo '--------------------------------------' | |
otool -L /usr/local/lib/libsdrplay_api.so | |
echo '--------------------------------------' | |
otool -L /Library/SDRplayAPI/3.15.0/lib/libsdrplay_api.so.3.15 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build | |
run: cc -v -o sdrplay_api_version sdrplay_api_version.c -lsdrplay_api -rpath /usr/local/lib | |
#run: cc -o sdrplay_api_version sdrplay_api_version.c /Library/SDRplayAPI/3.15.0/lib/libsdrplay_api.so.3.15 | |
- name: Check things | |
run: | | |
otool -L sdrplay_api_version | |
#- name: Run | |
# run: ./sdrplay_api_version | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
sdrplay_api_version | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |