mirror of
https://github.com/redstrate/Auracite.git
synced 2025-04-25 05:57:44 +00:00
Compile KDE libraries because Ubuntu sucks doesn't ship KF6
This commit is contained in:
parent
634bec8348
commit
27c53eb455
1 changed files with 28 additions and 7 deletions
35
.github/workflows/main.yml
vendored
35
.github/workflows/main.yml
vendored
|
@ -32,14 +32,35 @@ jobs:
|
||||||
version: "${{ env.QT_VERSION }}.*"
|
version: "${{ env.QT_VERSION }}.*"
|
||||||
cache: true
|
cache: true
|
||||||
modules: 'qtshadertools'
|
modules: 'qtshadertools'
|
||||||
- name: Setup Linux dependencies
|
- name: Set reusable strings
|
||||||
|
id: strings
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
|
||||||
sudo apt-get install \
|
echo "prefix-dir=${{ github.workspace }}/prefix" >> "$GITHUB_OUTPUT"
|
||||||
libkf6coreaddons-dev \
|
- name: Build Extra CMake Modules
|
||||||
libkf6i18n-dev \
|
if: steps.cache-prefix-restore.outputs.cache-hit != 'true'
|
||||||
libkf6crash-dev
|
run: |
|
||||||
|
git clone https://invent.kde.org/frameworks/extra-cmake-modules.git
|
||||||
|
cmake -B ${{ steps.strings.outputs.build-output-dir }}-ECM -DCMAKE_PREFIX_PATH=${{ steps.strings.outputs.prefix-dir }} -S extra-cmake-modules -DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.prefix-dir }} -DBUILD_TESTING=OFF
|
||||||
|
cmake --build ${{ steps.strings.outputs.build-output-dir }}-ECM --target install
|
||||||
|
cmake --install ${{ steps.strings.outputs.build-output-dir }}-ECM
|
||||||
|
- name: Configure KI18n
|
||||||
|
if: steps.cache-prefix-restore.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
git clone https://invent.kde.org/frameworks/ki18n.git
|
||||||
|
cmake -B ${{ steps.strings.outputs.build-output-dir }}-ki18n -DCMAKE_PREFIX_PATH=${{ steps.strings.outputs.prefix-dir }} -S ki18n -DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.prefix-dir }} -DBUILD_TESTING=OFF
|
||||||
|
- name: Build KI18n
|
||||||
|
if: steps.cache-prefix-restore.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
cmake --build ${{ steps.strings.outputs.build-output-dir }}-ki18n --target install
|
||||||
|
- name: Build KCoreAddons
|
||||||
|
if: steps.cache-prefix-restore.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
git clone https://invent.kde.org/frameworks/kcoreaddons.git
|
||||||
|
cmake -B ${{ steps.strings.outputs.build-output-dir }}-kca -DCMAKE_PREFIX_PATH=${{ steps.strings.outputs.prefix-dir }} -S kcoreaddons -DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.prefix-dir }} -DBUILD_TESTING=OFF
|
||||||
|
cmake --build ${{ steps.strings.outputs.build-output-dir }}-kca --target install
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: KDE_INCLUDEDIR=${{ steps.strings.outputs.prefix-dir }}/include KDE_LIBDIR=${{ steps.strings.outputs.prefix-dir }}/lib64 cargo build --verbose
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
run: cargo clippy
|
run: cargo clippy
|
||||||
|
|
Loading…
Add table
Reference in a new issue