-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First CI attempt
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
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
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 |