infra CI: Introduce new build test with github action

This is a build checker using the github action.
When a pull request occurs this action does a basic build,
example build, build with test.
This commit is contained in:
JunsuChoi 2021-01-26 11:36:09 +09:00
parent c63f961b9c
commit e5f59b53a4
2 changed files with 72 additions and 2 deletions

71
.github/workflows/actions.yml vendored Normal file
View file

@ -0,0 +1,71 @@
name: Continuous-integration
on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: false
- name: Install Packages
run: |
sudo apt-get update
sudo apt-get install ninja-build gcc-multilib g++-multilib meson
- name: Build
run: |
meson . build
cd build
sudo ninja -C . install
example_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: false
- name: Install Packages
run: |
sudo apt-get update
sudo add-apt-repository ppa:niko2040/e19
sudo apt-get update
sudo apt-get install ninja-build gcc-multilib g++-multilib meson
sudo apt-get install libefl-dev
- name: Build
run: |
meson . build -Dexamples=true
cd build
sudo ninja -C . install
test_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: false
- name: Install Packages
run: |
sudo apt-get update
sudo apt-get install ninja-build gcc-multilib g++-multilib libgtest-dev meson cmake cmake-data
- name: Install-ThorVG
run: |
meson . build
cd build
sudo ninja -C . install
cd ..
sudo rm -rf ./build
- name: Build
run: |
meson . build -Dtest=true --errorlogs
cd build
sudo ninja -C . install test

View file

@ -1,6 +1,5 @@
#TODO:Need to change warning level to 3
override_default = ['warning_level=0', 'werror=false']
override_default = ['werror=false']
gtest_dep = dependency('gtest')