1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Fix filename. Try 3 parallel jobs

This commit is contained in:
Jon Beniston 2023-09-24 17:13:41 +01:00
parent d96878f994
commit 6a75d36c4b

View File

@ -107,42 +107,23 @@ jobs:
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
# Need with clause so git describe --tags works
- name: Update brew - name: Update brew
run: brew update run: brew update
- name: Install brew packages - name: Install brew packages
run: brew install nasm boost hidapi libusb fftw ffmpeg faad2 opencv zlib airspy airspyhf hackrf rtl-sdr libbladerf uhd soapysdr run: brew install nasm boost hidapi libusb fftw ffmpeg faad2 opencv zlib airspy airspyhf hackrf rtl-sdr libbladerf uhd soapysdr
- name: Configure sdrangel - name: Configure SDRangel
run: | run: |
mkdir build && cd build mkdir build && cd build
cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_QT6=ON -DCMAKE_BUILD_TYPE=Release -DARCH_OPT=nehalem -DDEBUG_OUTPUT=ON -DENABLE_MIRISDR=OFF -DBUILD_SERVER=OFF -DENABLE_EXTERNAL_LIBRARIES=AUTO -DBUNDLE=ON -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=TRUE cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_QT6=ON -DCMAKE_BUILD_TYPE=Release -DARCH_OPT=nehalem -DDEBUG_OUTPUT=ON -DENABLE_MIRISDR=OFF -DBUILD_SERVER=OFF -DENABLE_EXTERNAL_LIBRARIES=AUTO -DBUNDLE=ON -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=TRUE
- name: Get version - name: Get filename
id: get_version id: get_filename
run: echo "version=$(grep CPACK_PACKAGE_FILE_NAME build/CMakeCache.txt | cut -d "=" -f2)" >> $GITHUB_OUTPUT run: echo "filename=$(grep CPACK_PACKAGE_FILE_NAME build/CMakeCache.txt | cut -d "=" -f2)" >> $GITHUB_OUTPUT
# - name: Build SDRangel on Mac
# Requires git fetch --tags upstream to have been run on the branch!
# git remote add upstream https://github.com/f4exb/sdrangel.git
# git fetch --tags upstream
- name: Get version 3
id: get_version3
run: echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
# This just gives branch name
- name: Get OS version
id: get_os_version
run: |
sw_vers -productVersion
echo "os_version=$(sw_vers -productVersion)" >> $GITHUB_OUTPUT
- name: Diplay version
run: |
echo ${{ steps.get_version.outputs.version }}
echo ${{ steps.get_version3.outputs.version }}
echo ${{ steps.get_os_version.outputs.os_version }}
- name: Build sdrangel on Mac
run: | run: |
cd build cd build
make package -j4 make package -j3
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: sdrangel-${{ steps.get_version.outputs.version }}_${{ steps.get_os_version.outputs.os_version }}_x86_64.dmg name: ${{ steps.get_filename.outputs.filename }}.dmg
path: ${{ github.workspace }}/build/sdrangel-${{ steps.get_version.outputs.version }}_${{ steps.get_os_version.outputs.os_version }}_x86_64.dmg path: ${{ github.workspace }}/build/${{ steps.get_filename.outputs.filename }}.dmg