Use GitHub Actions for CI (#661)

This commit is contained in:
Daniel Foré 2019-12-18 14:38:02 -08:00 committed by GitHub
parent 09728e0ad6
commit eca2bb1dfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 14 deletions

25
.github/workflows/main.yml vendored Normal file
View File

@ -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

View File

@ -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