ci: Add build jobs for libglop

This commit is contained in:
Mizux Seiha
2020-11-13 14:23:32 +01:00
parent c0b5d67c45
commit 29311085a4

65
.github/workflows/glop.yml vendored Normal file
View File

@@ -0,0 +1,65 @@
name: Glop CI
on: [push, pull_request]
# Building using the github runner environement directly.
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build env image
run: make --directory=cmake glop_env
- name: Build devel image
run: make --directory=cmake glop_devel
- name: Build project
run: make --directory=cmake glop_build
- name: Test project
run: make --directory=cmake glop_test
- name: Build Install env image
run: make --directory=cmake glop_install_env
- name: Build Install devel image
run: make --directory=cmake glop_install_devel
- name: Build Install
run: make --directory=cmake glop_install_build
- name: Test Install
run: make --directory=cmake glop_install_test
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPS=ON -DBUILD_CXX=OFF -DBUILD_GLOP=ON
- name: Build
run: cmake --build build --config Release --target all -v
- name: Install
run: cmake --build build --config Release --target install -v -- DESTDIR=install
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPS=ON -DBUILD_CXX=OFF -DBUILD_GLOP=ON
- name: Build
run: cmake --build build --target all -v
- name: Install
run: cmake --build build --target install -v -- DESTDIR=install
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPS=ON -DBUILD_CXX=OFF -DBUILD_GLOP=ON
- name: Build
run: cmake --build build --config Release --target ALL_BUILD -- /maxcpucount
- name: Install
run: cmake --build build --config Release --target INSTALL -- /maxcpucount