build(deps): bump actions/checkout from 4 to 5 #139
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: linux | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| - 'doc/**' | |
| - 'README.md' | |
| - 'README_zh_CN.md' | |
| - 'DEVELOPNOTE.md' | |
| - '.readthedocs.yaml' | |
| tags: | |
| - V** | |
| pull_request: | |
| branches: [ main ] | |
| paths-ignore: | |
| - 'doc/**' | |
| - 'README.md' | |
| - 'README_zh_CN.md' | |
| - 'DEVELOPNOTE.md' | |
| - '.readthedocs.yaml' | |
| workflow_dispatch: | |
| jobs: | |
| ubuntu-2204: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v4 | |
| with: | |
| version: '6.5.3' | |
| aqtversion: ==3.1.7 | |
| - name: Install prerequisites | |
| run: | | |
| sudo apt update | |
| sudo apt install -y make gcc patchelf chrpath libfuse2 libxcb-cursor0 build-essential libgtk-3-dev | |
| - name: Build all | |
| run: | | |
| git fetch --tags --force | |
| sed -i 's/--long --dirty/--long/g' ./tools/generate_info.sh | |
| sed -i 's/QT_DIR=\/opt\/Qt6.2.0\/6.2.0\/gcc_64/QT_DIR=$(cd "$(dirname "$0")";pwd)\/..\/Qt\/6.5.3\/gcc_64/g' build_deb.sh | |
| ./build_deb.sh | |
| - name: Upload build asserts | |
| uses: actions/upload-artifact@v4.6.2 | |
| with: | |
| name: QFSViewer_Ubuntu2204 | |
| path: | | |
| ./dpkg/*.deb | |
| - name: Run tests | |
| run: | | |
| if ls ./dpkg | grep ".deb" ; then echo "Pass"; else echo "Failed" && exit 1; fi; | |
| timeout --foreground -s SIGKILL 20s ./dpkg/QFSViewer_Linux_*/opt/QFSViewer/QFSViewer --version > >(tee run.log) || { | |
| if cat run.log | grep "QFSViewer" ; then echo "Pass" && exit 0; else echo "Failed" && exit 1; fi; | |
| } |