Find default theme differently #13
This file contains 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: Build on Ubuntu | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Initialize submodules | |
run: git submodule update --init --recursive | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y qtbase5-dev libqt5xdg-dev extra-cmake-modules libdbusmenu-qt5-dev libxcb-ewmh-dev libqt5x11extras5-dev libkf5windowsystem-dev qtbase5-private-dev qtmultimedia5-dev cmake clang | |
- name: Configure and build | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr | |
make -j$(nproc) | |
make DESTDIR=QtPlugin -j$(nproc) install | |
mv QtPlugin/usr/etc QtPlugin/ || true | |
find QtPlugin/ | |
cd QtPlugin/ && zip --symlinks -r ../QtPlugin_Ubuntu.zip . && cd - | |
- name: Create GitHub Release using Continuous Release Manager | |
if: github.event_name == 'push' # Only run for push events, not pull requests | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
curl -L -o continuous-release-manager-linux https://github.com/probonopd/continuous-release-manager/releases/download/continuous/continuous-release-manager-linux | |
chmod +x continuous-release-manager-linux | |
./continuous-release-manager-linux | |
RELEASE_ID=$(./continuous-release-manager-linux) | |
echo "RELEASE_ID=${RELEASE_ID}" >> $GITHUB_ENV | |
- name: Upload to GitHub Release | |
if: github.event_name == 'push' # Only run for push events, not pull requests | |
uses: xresloader/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "build/*zip" | |
draft: false | |
verbose: true | |
branches: main | |
tag_name: continuous | |
release_id: ${{ env.RELEASE_ID }} |