Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
First CI attempt
  • Loading branch information
grulja committed Sep 21, 2020
1 parent f5caa91 commit ad4f340
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Automatic build
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
release:
types: [ created ]
env:
BUILD_TYPE: Release

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt update
sudo apt install qt5-default libqt5gui5 libqt5x11extras5 cmake pkg-config qtbase5-dev libqt5x11extras5-dev qtbase5-private-dev libqt5waylandclient5-dev libx11-dev xcb libx11-xcb-dev libgtk-3-dev
git clone https://github.com/FedoraQt/adwaita-qt.git adwaita-qt
cd adwaita-qt
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make -j2
sudo make install
- name: Create Build Environment
run: mkdir ${{runner.workspace}}/build

- name: Configure QMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: qmake $GITHUB_WORKSPACE

# Enable decorations once we can update to newer Ubuntu, the current one doesn't ship
# private headers for QtWayland
- name: Disable decorations
shell: bash
working-directory: $GITHUB_WORKSPACE
run: sed -i 's@SUBDIRS += common decoration theme@SUBDIRS += common theme@' qgnomeplatform.pro

- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: make -j2

- name: Install
working-directory: ${{runner.workspace}}/build
shell: bash
run: sudo make install

0 comments on commit ad4f340

Please sign in to comment.