Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Dec 3, 2023
1 parent 6203bd0 commit c4fe41f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 103 deletions.
57 changes: 7 additions & 50 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,20 @@
# SPDX-FileCopyrightText: 2023 Pier Luigi Fiorini <[email protected]>
# SPDX-License-Identifier: CC0-1.0

name: CI

on:
push:
branches:
- master
- develop
tags:
- v*
pull_request:
branches:
- master
- develop

jobs:
neon:
if: "!contains(github.event.head_commit.message, 'ci skip')"
strategy:
matrix:
compiler:
- gcc
- clang
runs-on: ubuntu-latest
steps:
- name: Extract branch name
id: extract_branch
shell: bash
run: |
if [ -n "${{ github.base_ref }}" ]; then
echo "##[set-output name=branch;]${{ github.base_ref }}"
else
github_ref=${{ github.ref }}
echo "##[set-output name=branch;]${github_ref##*/}"
fi
- name: Install dependencies
run: |
set -x
wget -qO - 'http://archive.neon.kde.org/public.key' | sudo apt-key add -
sudo apt-add-repository http://archive.neon.kde.org/user
sudo apt-get update
sudo apt-get install -y \
extra-cmake-modules \
dbus-x11 \
xvfb \
qtbase5-dev \
qtdeclarative5-dev \
qtquickcontrols2-5-dev \
qttools5-dev
- uses: actions/checkout@v2
- name: Build dependencies
run: |
set -x
./.github/workflows/scripts/build-deps ${{ steps.extract_branch.outputs.branch }}
- name: Build
run: |
set -x
if [ "${{ matrix.compiler }}" == "clang" ]; then
export CC=clang
export CXX=clang++
fi
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make -j $(getconf _NPROCESSORS_ONLN)
sudo make install
build-qt6:
uses: lirios/.github/.github/workflows/build-linux-qt6.yml@master
38 changes: 9 additions & 29 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2023 Pier Luigi Fiorini <[email protected]>
# SPDX-License-Identifier: CC0-1.0

name: Checks

on:
Expand All @@ -14,33 +17,10 @@ on:
- reopened
- edited

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
wip:
if: "!contains(github.event.head_commit.message, 'ci skip') && github.event_name == 'pull_request'"
runs-on: ubuntu-latest
steps:
- name: Work in progress
uses: wip/action@master
xdg:
if: "!contains(github.event.head_commit.message, 'ci skip')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Validate XDG files
uses: liri-infra/xdg-validator-action@master
with:
strict: false
qml:
if: "!contains(github.event.head_commit.message, 'ci skip')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Validate QML and JavaScript files
uses: liri-infra/qmllint-action@master
checks:
uses: lirios/.github/.github/workflows/checks.yml@master
with:
enable_wip: true
enable_xdg: true
enable_qml: true
24 changes: 0 additions & 24 deletions .github/workflows/scripts/build-deps

This file was deleted.

0 comments on commit c4fe41f

Please sign in to comment.