Infra: Add build test with github-action
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 7 May 2021 06:20:54 +0000 (15:20 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 10 May 2021 05:17:20 +0000 (14:17 +0900)
This patch make run two types of build test.
- normal build
- example build (with libefl-dev)

.github/workflows/build.yml [new file with mode: 0644]

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644 (file)
index 0000000..ccd1f53
--- /dev/null
@@ -0,0 +1,64 @@
+name: Build Test
+
+on:
+  pull_request:
+    branches:
+      - master
+
+jobs:
+  build:
+    runs-on: ubuntu-18.04
+    steps:
+    - uses: actions/checkout@v2
+      with:
+        submodules: true
+
+    - name: Install Packages
+      run: |
+        sudo apt-get update
+        sudo apt-get install ninja-build gcc-multilib g++-multilib meson
+
+    - name: Build_thorvg
+        wget -O thorvg.tar.gz https://github.com/Samsung/thorvg/archive/refs/tags/v0.1.0.tar.gz
+        tar -zxvf thorvg.tar.gz
+        cd thorvg-0.1.0
+        meson . build
+        cd build
+        sudo ninja -C . install
+        cd ..
+
+    - name: Build
+      run: |
+        meson . build
+        cd build
+        sudo ninja -C . install
+
+  example_build:
+    runs-on: ubuntu-18.04
+    steps:
+    - uses: actions/checkout@v2
+      with:
+        submodules: true
+
+    - name: Install Packages
+      run: |
+        sudo apt-get update
+        sudo add-apt-repository ppa:niko2040/e19
+        sudo apt-get install ninja-build gcc-multilib g++-multilib meson
+        sudo apt-get install libefl-dev
+
+    - name: Build_thorvg
+        wget -O thorvg.tar.gz https://github.com/Samsung/thorvg/archive/refs/tags/v0.1.0.tar.gz
+        tar -zxvf thorvg.tar.gz
+        cd thorvg-0.1.0
+        meson . build
+        cd build
+        sudo ninja -C . install
+        cd ..
+
+    - name: Build
+      run: |
+        meson . build -Dexamples=true
+        cd build
+        sudo ninja -C . install
+