calamares/.github/workflows/ci-neon.yml

108 lines
2.7 KiB
YAML
Raw Normal View History

name: ci-neon
on:
push:
branches:
- calamares
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:
env:
BUILDDIR: /build
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"
-DCMAKE_BUILD_TYPE=Debug
jobs:
build:
runs-on: ubuntu-latest
container:
image: docker://kdeneon/plasma:user
options: --tmpfs /build:rw --user 0:0
steps:
2021-01-28 14:11:21 +01:00
-
name: prepare env
run: |
sudo apt-get update
sudo apt-get -y install git-core
2021-01-28 14:11:21 +01:00
-
name: checkout
uses: actions/checkout@v2
2021-01-28 14:11:21 +01:00
-
name: install dependencies
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
-
name: prepare build
run: |
2021-01-25 00:51:09 +01:00
test -n "$BUILDDIR" || { echo "! \$BUILDDIR not set" ; exit 1 ; }
mkdir -p $BUILDDIR
test -f $SRCDIR/CMakeLists.txt || { echo "! Missing $SRCDIR/CMakeLists.txt" ; exit 1 ; }
-
name: cmake
working-directory: ${{ env.BUILDDIR }}
run: cmake $CMAKE_ARGS $SRCDIR
-
name: make
working-directory: ${{ env.BUILDDIR }}
run: make -j2 VERBOSE=1
2021-01-28 14:11:21 +01:00
-
name: install
working-directory: ${{ env.BUILDDIR }}
run: |
2021-01-28 14:11:21 +01:00
make install VERBOSE=1
2021-02-01 13:27:33 +01:00
-
name: Dump steps context
env:
JOBS_CONTEXT: ${{ toJSON(job) }}
STEPS_CONTEXT: ${{ toJSON(steps) }}
run: |
echo "STEPS"
echo "$STEPS_CONTEXT"
echo "JOB"
echo "$JOB_CONTEXT"
2021-01-28 14:11:21 +01:00
-
name: notify
uses: rectalogic/notify-irc@v1
2021-02-01 13:27:33 +01:00
if: always()
2021-01-28 14:11:21 +01:00
with:
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 13:27:33 +01:00
${{ github.actor }} result ${{ steps.install.conclusion }} - ${{ steps.install.outcome }} - ${{ job.status }} RUN ${{ github.run_id }}