-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
103 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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# SPDX-FileCopyrightText: 2023 Pier Luigi Fiorini <[email protected]> | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
name: Checks | ||
|
||
on: | ||
|
@@ -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 |
This file was deleted.
Oops, something went wrong.