diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..af57fcfcc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,79 @@ +name: ci + +on: + push: + workflow_dispatch: + #schedule: + # - cron: '30 * * * *' + +env: + BUILDDIR: /build + SRCDIR: /src + +jobs: + build: + runs-on: ubuntu-latest + container: + image: docker://kdeneon/plasma:user + options: --tmpfs /build:rw,size=500M --user 0:0 + steps: + - + name: prepare + run: | + sudo apt-get update + sudo apt-get -y install git-core + - + name: checkout + uses: actions/checkout@v2 + - + 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: config + run: | + test -f "ci/ci-config.sh" && . "ci/ci-config.sh" + - + name: continuous + env: + SRCDIR: ${{ github.workspace }} + run: | + test -x "ci/ci-continuous.sh" || { echo "! Missing ci-continuous.sh" ; exit 1 ; } + exec "ci/ci-continuous.sh" + + # - name: irc push + # uses: rectalogic/notify-irc@v1 + # if: github.event_name == 'push' + # with: + # channel: "#mychannel" + # nickname: my-github-notifier + # message: | + # ${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }} + # ${{ join(github.event.commits.*.message) }} \ No newline at end of file diff --git a/ci/travis-config.sh b/ci/ci-config.sh similarity index 100% rename from ci/travis-config.sh rename to ci/ci-config.sh diff --git a/ci/travis-continuous.sh b/ci/ci-continuous.sh similarity index 96% rename from ci/travis-continuous.sh rename to ci/ci-continuous.sh index ceb80df9b..b99786c70 100755 --- a/ci/travis-continuous.sh +++ b/ci/ci-continuous.sh @@ -3,7 +3,7 @@ # SPDX-FileCopyrightText: 2017 Adriaan de Groot # SPDX-License-Identifier: BSD-2-Clause # -# Travis CI script for use on every-commit: +# CI script for use on every-commit: # - build and install Calamares # test -n "$BUILDDIR" || { echo "! \$BUILDDIR not set" ; exit 1 ; } diff --git a/ci/travis-coverity.sh b/ci/ci-coverity.sh similarity index 97% rename from ci/travis-coverity.sh rename to ci/ci-coverity.sh index 5ec73568a..d714ca946 100755 --- a/ci/travis-coverity.sh +++ b/ci/ci-coverity.sh @@ -3,7 +3,7 @@ # SPDX-FileCopyrightText: 2017 Adriaan de Groot # SPDX-License-Identifier: BSD-2-Clause # -# Travis CI script for weekly (cron) use: +# CI script for weekly (cron) use: # - use the coverity tool to build and and upload results # test -n "$COVERITY_SCAN_TOKEN" || { echo "! Missing Coverity token" ; exit 1 ; }