Skip to content

Linux

Linux #130

Workflow file for this run

name: Linux
on:
workflow_dispatch:
schedule:
- cron: 0 0 */7 * *
jobs:
build:
runs-on: ubuntu-20.04
env:
CCACHE_DIR : ${{ github.workspace }}/.ccache
steps:
- name: Get CPU Info
run : cat /proc/cpuinfo
- name: Get Qt 5 Patched
run : |
git clone -b kde/5.15 https://invent.kde.org/qt/qt/qt5.git --depth=1
cd qt5
git clone -b kde/5.15 https://invent.kde.org/qt/qt/qtbase.git --depth=1 --recursive
git clone -b kde/5.15 https://invent.kde.org/qt/qt/qtsvg.git --depth=1 --recursive
git clone -b kde/5.15 https://invent.kde.org/qt/qt/qttools.git --depth=1 --recursive
git clone -b kde/5.15 https://invent.kde.org/qt/qt/qtimageformats.git --depth=1 --recursive
git clone -b kde/5.15 https://invent.kde.org/qt/qt/qttranslations.git --depth=1 --recursive
- name : Get dependenies
run : |
sudo apt update -y
sudo apt install -y libgl1-mesa-dev libglu1-mesa-dev ccache
sudo apt install -y libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-xinerama0-dev libxkbcommon-dev libxkbcommon-x11-dev
sudo apt upgrade -y
sudo apt remove libtiff-dev -y
- name : Get time
id : time
run : echo "now=`date +%s`" >> $GITHUB_OUTPUT
- name: Cache ccache
id: qt-ccahe
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/.ccache
key: ${{ runner.os }}-build-qt5-${{ steps.time.outputs.now }}
restore-keys: |
${{ runner.os }}-build-qt5-
- name: Configure
run: |
cd qt5
./configure -static -prefix ../qt -opensource -nomake tests -confirm-license -nomake examples -release -no-icu -xcb -xcb-xlib -bundled-xcb-xinput -ccache
- name: Build
run: |
cd qt5
make -j3
make install
- name: Pack
run: |
tar -czvf qt.tar.gz qt
- name: Upload artifact
uses: actions/[email protected]
with:
name: qt-5.15.3-kde-static-linux
path: qt.tar.gz
- name: Upload Release
#if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./qt.tar.gz
asset_name: qt-5.15.3-kde-static-linux.tar.gz
tag: refs/tags/release
overwrite: true