mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
Build for both ubuntu-22.04 and ubuntu-24.04
This commit is contained in:
parent
8c7e650f8f
commit
bd8853f2e9
19
.github/workflows/linux.yml
vendored
19
.github/workflows/linux.yml
vendored
@ -9,13 +9,15 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_deb:
|
build_deb:
|
||||||
runs-on: ubuntu-22.04
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-22.04, ubuntu-24.04]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
@ -37,8 +39,6 @@ jobs:
|
|||||||
- name: Build SDRangel
|
- name: Build SDRangel
|
||||||
run: |
|
run: |
|
||||||
debuild -i -us -uc -b
|
debuild -i -us -uc -b
|
||||||
find . | grep .deb
|
|
||||||
find .. | grep .deb
|
|
||||||
- name: Get version
|
- name: Get version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: |
|
run: |
|
||||||
@ -47,16 +47,15 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT
|
echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
- name: Get filename
|
- name: Rename
|
||||||
id: get_filename
|
run: mv ../sdrangel_*_amd64.deb ../sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb
|
||||||
run: echo "filename=$(grep CPACK_PACKAGE_FILE_NAME build/CMakeCache.txt | cut -d "=" -f2)" >> $GITHUB_OUTPUT
|
|
||||||
- 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 }}-deb
|
name: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb
|
||||||
path: ${{ github.workspace }}/build/${{ steps.get_filename.outputs.filename }}.deb
|
path: ../sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb
|
||||||
- name: Upload release
|
- name: Upload release
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: ${{ github.workspace }}/build/${{ steps.get_filename.outputs.filename }}.deb
|
files: ../sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb
|
||||||
|
Loading…
Reference in New Issue
Block a user