Skip to content

Install libusb in linuxdeps #423

Install libusb in linuxdeps

Install libusb in linuxdeps #423

Workflow file for this run

name: CI
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
inputs:
debug_enabled:
description: 'Build and run interactive shell'
required: false
default: false
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
# Installation of dependencies is too OS-dependent now, we don't
# miss that much by particularizing this in a per-OS basis.
build-linux-appimage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup interactive shell session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
- name: Install dependencies
uses: "./.github/actions/linuxdeps"
- name: Build & Distribute (SigDigger)
run: |
cd Scripts
chmod a+x dist-appimage.sh
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"$PWD"/deploy-root/lib
SIGDIGGER_EMBED_SOAPYSDR=1 BUILDTYPE=Debug ./dist-appimage.sh
cd ..
- name: Archive AppImage files
uses: actions/upload-artifact@v2
with:
name: linux-latest-appimage
path: Scripts/*.AppImage
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Setup interactive shell session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
- name: Install dependencies
uses: "./.github/actions/macosdeps"
- name: Build & Distribute (SigDigger)
run: |
cd Scripts
chmod a+x dist-dmg.sh
SIGDIGGER_EMBED_SOAPYSDR=1 BUILDTYPE=Debug ./dist-dmg.sh
cd ..
- name: Archive .DMG files
uses: actions/upload-artifact@v2
with:
name: macos-latest-dmg
path: Scripts/*.dmg
# Windows
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git mingw-w64-x86_64-cc mingw-w64-x86_64-make mingw-w64-x86_64-cmake mingw-w64-x86_64-libsndfile mingw-w64-x86_64-fftw mingw-w64-x86_64-volk mingw-w64-x86_64-libxml2 mingw-w64-x86_64-libusb mingw-w64-x86_64-qt5 mingw-w64-x86_64-portaudio zip
# SoapySDR
- name: Checkout (SoapySDR)
uses: actions/checkout@v2
with:
repository: pothosware/SoapySDR
ref: refs/heads/master
path: SoapySDR
- name: Configure (SoapySDR)
run: /mingw64/bin/cmake -G"MinGW Makefiles" -B SoapySDR/build -DCMAKE_INSTALL_PREFIX:PATH=/mingw64/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} SoapySDR/
- name: Build (SoapySDR)
run: /mingw64/bin/cmake --build SoapySDR/build --config ${{env.BUILD_TYPE}}
- name: Install (SoapySDR)
run: /mingw64/bin/cmake --build SoapySDR/build --config ${{env.BUILD_TYPE}} --target install
# BatchDrake's fixed rtl-sdr-blog
- name: Checkout (rtl-sdr-blog from BatchDrake)
uses: actions/checkout@v2
with:
repository: BatchDrake/rtl-sdr-blog
ref: refs/heads/feature/xfer-completion
path: rtl-sdr-blog
- name: Configure (rtl-sdr-blog)
run: /mingw64/bin/cmake -G"MinGW Makefiles" -B rtl-sdr-blog/build -DCMAKE_INSTALL_PREFIX:PATH=/mingw64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} rtl-sdr-blog
- name: Build (rtl-sdr-blog)
run: /mingw64/bin/cmake --build rtl-sdr-blog/build --config ${{env.BUILD_TYPE}}
- name: Install (rtl-sdr-blog)
run: /mingw64/bin/cmake --build rtl-sdr-blog/build --config ${{env.BUILD_TYPE}} --target install
# SoapyRTLSDR
- name: Checkout (SoapyRTLSDR)
uses: actions/checkout@v2
with:
repository: pothosware/SoapyRTLSDR
ref: refs/heads/master
path: SoapyRTLSDR
- name: Configure (SoapyRTLSDR)
run: /mingw64/bin/cmake -G"MinGW Makefiles" -B SoapyRTLSDR/build -DCMAKE_INSTALL_PREFIX:PATH=/mingw64/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} SoapyRTLSDR
- name: Build (SoapyRTLSDR)
run: /mingw64/bin/cmake --build SoapyRTLSDR/build --config ${{env.BUILD_TYPE}}
- name: Install (SoapyRTLSDR)
run: /mingw64/bin/cmake --build SoapyRTLSDR/build --config ${{env.BUILD_TYPE}} --target install
# SigDigger
- name: Build & Distribute (SigDigger)
run: |
cd Scripts
chmod a+x dist-mingw32.sh
BUILDTYPE=Debug ./dist-mingw32.sh
cd ..
- name: Archive .ZIP files
uses: actions/upload-artifact@v2
with:
name: windows-latest-zip
path: Scripts/SigDigger-*.zip