2021-01-31 21:50:33 +01:00
|
|
|
name: ci-neon
|
2021-01-22 22:15:49 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-01-25 01:56:54 +01:00
|
|
|
branches:
|
|
|
|
- calamares
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- reopened
|
|
|
|
- synchronize
|
2021-01-22 22:15:49 +01:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
env:
|
|
|
|
BUILDDIR: /build
|
2021-01-25 01:56:54 +01:00
|
|
|
SRCDIR: ${{ github.workspace }}
|
2021-01-25 00:51:09 +01:00
|
|
|
CMAKE_ARGS: |
|
|
|
|
-DWEBVIEW_FORCE_WEBKIT=1
|
|
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
|
|
|
|
-DWITH_PYTHONQT=OFF"
|
2021-01-25 01:56:54 +01:00
|
|
|
-DCMAKE_BUILD_TYPE=Debug
|
2021-01-22 22:15:49 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: docker://kdeneon/plasma:user
|
2021-01-25 15:54:40 +01:00
|
|
|
options: --tmpfs /build:rw --user 0:0
|
2021-02-01 16:57:05 +01:00
|
|
|
if: github.repository == 'calamares/calamares'
|
2021-01-22 22:15:49 +01:00
|
|
|
steps:
|
2021-02-01 13:57:28 +01:00
|
|
|
- name: "prepare env"
|
2021-01-22 22:15:49 +01:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install git-core
|
2021-02-01 13:57:28 +01:00
|
|
|
- name: "checkout"
|
2021-01-22 22:15:49 +01:00
|
|
|
uses: actions/checkout@v2
|
2021-02-01 13:57:28 +01:00
|
|
|
- name: "install dependencies"
|
2021-01-22 22:15:49 +01:00
|
|
|
run: |
|
|
|
|
sudo apt-get -y install \
|
|
|
|
build-essential \
|
|
|
|
cmake \
|
|
|
|
extra-cmake-modules \
|
|
|
|
gettext \
|
|
|
|
kio-dev \
|
|
|
|
libatasmart-dev \
|
|
|
|
libboost-python-dev \
|
|
|
|
libkf5config-dev \
|
|
|
|
libkf5coreaddons-dev \
|
|
|
|
libkf5i18n-dev \
|
|
|
|
libkf5iconthemes-dev \
|
|
|
|
libkf5parts-dev \
|
|
|
|
libkf5service-dev \
|
|
|
|
libkf5solid-dev \
|
|
|
|
libkpmcore-dev \
|
|
|
|
libparted-dev \
|
|
|
|
libpolkit-qt5-1-dev \
|
|
|
|
libqt5svg5-dev \
|
|
|
|
libqt5webkit5-dev \
|
|
|
|
libyaml-cpp-dev \
|
|
|
|
os-prober \
|
|
|
|
pkg-config \
|
|
|
|
python3-dev \
|
|
|
|
qtbase5-dev \
|
|
|
|
qtdeclarative5-dev \
|
|
|
|
qttools5-dev \
|
|
|
|
qttools5-dev-tools
|
2021-02-01 13:57:28 +01:00
|
|
|
- name: "prepare build"
|
2021-01-22 22:15:49 +01:00
|
|
|
run: |
|
2021-01-25 00:51:09 +01:00
|
|
|
test -n "$BUILDDIR" || { echo "! \$BUILDDIR not set" ; exit 1 ; }
|
2021-01-25 15:54:40 +01:00
|
|
|
mkdir -p $BUILDDIR
|
|
|
|
test -f $SRCDIR/CMakeLists.txt || { echo "! Missing $SRCDIR/CMakeLists.txt" ; exit 1 ; }
|
2021-02-01 13:57:28 +01:00
|
|
|
- name: "Calamares: cmake"
|
2021-01-25 15:54:40 +01:00
|
|
|
working-directory: ${{ env.BUILDDIR }}
|
2021-01-25 01:56:54 +01:00
|
|
|
run: cmake $CMAKE_ARGS $SRCDIR
|
2021-02-01 14:41:07 +01:00
|
|
|
- name: "Calamares: make"
|
|
|
|
working-directory: ${{ env.BUILDDIR }}
|
|
|
|
run: make -j2 VERBOSE=1
|
|
|
|
- name: "Calamares: install"
|
|
|
|
working-directory: ${{ env.BUILDDIR }}
|
|
|
|
run: make install VERBOSE=1
|
2021-02-01 14:25:02 +01:00
|
|
|
- name: "notify: ok"
|
2021-01-28 14:11:21 +01:00
|
|
|
uses: rectalogic/notify-irc@v1
|
2021-02-01 14:25:02 +01:00
|
|
|
if: ${{ success() }}
|
|
|
|
with:
|
|
|
|
server: chat.freenode.net
|
|
|
|
channel: "#calamares"
|
|
|
|
nickname: gh-notify
|
2021-02-01 14:41:07 +01:00
|
|
|
message: "CI OK for '${{ github.event.head_commit.message }}' in ${{ github.repository }}"
|
2021-02-01 14:25:02 +01:00
|
|
|
- name: "notify: fail"
|
|
|
|
uses: rectalogic/notify-irc@v1
|
|
|
|
if: ${{ failure() }}
|
2021-01-28 14:11:21 +01:00
|
|
|
with:
|
2021-01-28 15:00:45 +01:00
|
|
|
server: chat.freenode.net
|
2021-01-28 15:29:44 +01:00
|
|
|
channel: "#calamares"
|
|
|
|
nickname: gh-notify
|
2021-01-28 14:11:21 +01:00
|
|
|
message: |
|
2021-02-01 15:04:13 +01:00
|
|
|
CI FAIL for '${{ github.event.head_commit.message }}' in ${{ github.repository }}
|
2021-02-01 14:25:02 +01:00
|
|
|
.. DIFF ${{ github.event.compare }}
|