mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-29 03:09:14 -05:00
Try to fix version number
This commit is contained in:
parent
8c9eb22bfd
commit
ddbac0e503
43
.github/workflows/sdrangel.yml
vendored
43
.github/workflows/sdrangel.yml
vendored
@ -101,6 +101,28 @@ jobs:
|
||||
runs-on: macos-11
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
# Need with clause so git describe --tags works?
|
||||
- name: Get version
|
||||
id: get_version
|
||||
run: echo "version=$(git describe --tags | cut -c2-)" >> $env:GITHUB_OUTPUT
|
||||
# Requires git fetch --tags upstream to have been run!
|
||||
- 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)" >> $env:GITHUB_OUTPUT
|
||||
- name: Diplay version
|
||||
run: |
|
||||
echo ${{ steps.get_version.outputs.version }}
|
||||
echo ${{ steps.get_version3.outputs.version }}
|
||||
echo ${{ steps.get_os_version.outputs.version }}
|
||||
- name: Update brew
|
||||
run: brew update
|
||||
- name: Install brew packages
|
||||
@ -110,25 +132,8 @@ jobs:
|
||||
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
|
||||
make package -j4
|
||||
- id: get_version2
|
||||
uses: battila7/get-version-action@v2
|
||||
- name: Get version
|
||||
id: get_version
|
||||
run: echo "version=$(git describe --tags | cut -c2-)" >> $env:GITHUB_OUTPUT
|
||||
# Requires git fetch --tags upstream to have been run!
|
||||
- name: Set output
|
||||
id: get_version3
|
||||
run: echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
|
||||
- name: Diplay version
|
||||
run: |
|
||||
echo ${{ steps.get_version.outputs.version }}
|
||||
echo ${{ steps.get_version2.outputs.version }}
|
||||
echo ${{ steps.get_version3.outputs.version }}
|
||||
- name: Get OS version
|
||||
id: get_os_version
|
||||
run: echo "version=$(sw_vers -productVersion)" >> $env:GITHUB_OUTPUT
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: sdrangel-${{ steps.get_version3.outputs.version }}_${{ steps.get_os_version.outputs.version }}_x86_64.dmg
|
||||
path: ${{ github.workspace }}/build/sdrangel-${{ steps.get_version3.outputs.version }}_${{ steps.get_os_version.outputs.version }}_x86_64.dmg
|
||||
name: sdrangel-${{ steps.get_version.outputs.version }}_${{ steps.get_os_version.outputs.os_version }}_x86_64.dmg
|
||||
path: ${{ github.workspace }}/build/sdrangel-${{ steps.get_version.outputs.version }}_${{ steps.get_os_version.outputs.os_version }}_x86_64.dmg
|
||||
|
Loading…
Reference in New Issue
Block a user