Update compile instructions for Fedora #930
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ubuntu | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '[0-9]+.[0-9]+.[0-9]+' | |
| pull_request: | |
| types: [opened, synchronize] | |
| jobs: | |
| ubuntu-build: | |
| runs-on: ${{ matrix.ubuntu-distro }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ubuntu-distro: | |
| - ubuntu-22.04 | |
| steps: | |
| - name: Sync repository | |
| uses: actions/checkout@v5 | |
| - name: Cache apt packages | |
| uses: awalsh128/cache-apt-pkgs-action@latest | |
| with: | |
| packages: software-properties-common qtbase5-dev libqt5svg5-dev libqt5websockets5-dev libqt5opengl5-dev libqt5x11extras5-dev libprotoc-dev ccache libmosquitto-dev ca-certificates lsb-release wget | |
| version: 2.0 | |
| - name: Install Apache Arrow for Parquet support | |
| shell: bash | |
| run: | | |
| wget https://packages.apache.org/artifactory/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | |
| sudo apt install -y -V ./apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb | |
| sudo apt update | |
| sudo apt install -y -V libarrow-dev libparquet-dev | |
| - name: Prepare ccache | |
| shell: bash | |
| run: | | |
| mkdir -p ${{ runner.temp }}/ccache/tmp | |
| - name: Save ccache folder | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ runner.temp }}/ccache | |
| key: ${{ runner.os }}-${{ matrix.ubuntu-distro }} | |
| - name: Build Plotjuggler | |
| shell: bash | |
| working-directory: ${{ github.workspace }} | |
| env: | |
| CCACHE_DIR: ${{ runner.temp }}/ccache | |
| run: | | |
| cmake . -B build -DCMAKE_BUILD_TYPE=Release \ | |
| -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache | |
| cmake --build build | |
| - name: Build AppImage | |
| working-directory: ${{ github.workspace }} | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage | |
| wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage | |
| chmod +x linuxdeploy*.AppImage | |
| mkdir -p AppDir/usr/bin | |
| cp -v build/bin/* AppDir/usr/bin | |
| ./linuxdeploy-x86_64.AppImage --appdir=AppDir \ | |
| -d ./PlotJuggler.desktop \ | |
| -i ./plotjuggler.png \ | |
| --plugin qt --output appimage | |
| - name: Upload AppImage | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: PlotJuggler-x86_64.AppImage | |
| path: PlotJuggler-x86_64.AppImage | |
| - name: Upload to Release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: PlotJuggler-x86_64.AppImage | |
| generate_release_notes: true | |
| fail_on_unmatched_files: false |