From eca2bb1dfb22f01fc19abd2d5baf35841517e5f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20For=C3=A9?= Date: Wed, 18 Dec 2019 14:38:02 -0800 Subject: [PATCH] Use GitHub Actions for CI (#661) --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ .travis.yml | 14 -------------- 2 files changed, 25 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..39237760 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + container: + image: elementary/docker:unstable + + steps: + - uses: actions/checkout@v1 + - name: Install Dependencies + run: | + apt update + apt install -y gettext gnome-settings-daemon-dev gsettings-desktop-schemas-dev libbamf3-dev libcanberra-dev libcanberra-gtk3-dev libclutter-1.0-dev libgee-0.8-dev libglib2.0-dev libgnome-desktop-3-dev libgranite-dev libgtk-3-dev libmutter-2-dev libplank-dev libxml2-utils meson valac valadoc + - name: Build + env: + DESTDIR: out + run: | + meson build + ninja -C build + ninja -C build install diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 03a3083a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: generic - -services: - - docker - -env: - - DEPENDENCY_PACKAGES="meson gettext gnome-settings-daemon-dev gsettings-desktop-schemas-dev libbamf3-dev libcanberra-dev libcanberra-gtk3-dev libclutter-1.0-dev libgee-0.8-dev libglib2.0-dev libgnome-desktop-3-dev libgranite-dev libgtk-3-dev libmutter-2-dev libplank-dev libxml2-utils valac valadoc" - -install: - - docker pull elementary/docker:juno-unstable - - docker run -v "$PWD":/tmp/build-dir elementary/docker:juno-unstable /bin/sh -c "apt-get update && apt-get -y install $DEPENDENCY_PACKAGES && cd /tmp/build-dir && meson build && ninja -C build" - -script: - - echo BUILDS PASSED