Skip to content

2.1.2

2.1.2 #10

Workflow file for this run

name: Release Linux
on:
workflow_dispatch:
release:
types: published
jobs:
run:
runs-on: ubuntu-24.04
steps:
- name: Dependencies
run: |
sudo apt update
sudo apt install -y \
rpm \
qt6-base-dev \
libqt6opengl6-dev \
libglu1-mesa-dev \
texlive-xetex \
fonts-lato
- name: Checkout
uses: actions/checkout@v4
- name: Configure
run: cmake -S . -B build
- name: Build program
run: cmake --build build
- name: Build doc
run: cmake --build build --target doc
- name: Package
run: cmake --build build --target package
- name: Extract informations
id: extract
shell: bash
run: |
echo "tag=$(echo ${GITHUB_REF##*/})" >> $GITHUB_OUTPUT
echo "upload_url=$(curl -sL https://api.github.com/repos/thomaslepoix/Qucs-RFlayout/releases/tags/${GITHUB_REF##*/} | jq -r '.upload_url')" >> $GITHUB_OUTPUT
- name: Deploy .tar.xz on Github
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.extract.outputs.upload_url }}
asset_path: build/out/qucsrflayout-${{ steps.extract.outputs.tag }}-x86_64.tar.xz
asset_name: qucsrflayout-${{ steps.extract.outputs.tag }}-x86_64.tar.xz
asset_content_type: application/x-xz-compressed-tar
- name: Deploy .rpm on Github
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.extract.outputs.upload_url }}
asset_path: build/out/qucsrflayout-${{ steps.extract.outputs.tag }}-1.x86_64.rpm
asset_name: qucsrflayout-${{ steps.extract.outputs.tag }}-1.x86_64.rpm
asset_content_type: application/x-rpm