2020-05-30 20:14:33 +00:00
|
|
|
name: Github CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
main_matrix:
|
2020-09-23 19:34:31 +00:00
|
|
|
name: Unix
|
2020-05-30 20:14:33 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest]
|
|
|
|
compiler: [gcc, clang]
|
|
|
|
build_system: [makefile, autotools, mymake]
|
|
|
|
hyper_use_rviz: [rviz_1, rviz_0]
|
|
|
|
hyper_use_png: [png_1]
|
|
|
|
hyper_use_glew: [glew_1]
|
2020-09-23 19:34:31 +00:00
|
|
|
env:
|
|
|
|
GH_OS: ${{ matrix.os }}
|
|
|
|
GH_COMPILER: ${{ matrix.compiler }}
|
|
|
|
GH_BUILDSYS: ${{ matrix.build_system }}
|
|
|
|
GH_HYP_RVIZ: ${{ matrix.hyper_use_rviz }}
|
|
|
|
GH_HYP_PNG: ${{ matrix.hyper_use_png }}
|
|
|
|
GH_HYP_GLEW: ${{ matrix.hyper_use_glew }}
|
2020-05-30 20:14:33 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-09-23 19:34:31 +00:00
|
|
|
- name: Install build dependencies
|
2020-05-30 20:14:33 +00:00
|
|
|
run: .github/workflows/install_deps.sh
|
2020-09-23 19:34:31 +00:00
|
|
|
- name: Build
|
2020-05-30 20:14:33 +00:00
|
|
|
run: .github/workflows/build.sh
|
2020-09-23 19:34:31 +00:00
|
|
|
- name: Do a simple test
|
2020-05-30 20:14:33 +00:00
|
|
|
run: .github/workflows/test_simple.sh
|
|
|
|
|
|
|
|
windows:
|
2020-09-23 19:34:31 +00:00
|
|
|
name: Windows
|
|
|
|
runs-on: windows-latest
|
2020-05-30 20:14:33 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
compiler: [gcc]
|
2020-09-23 19:34:31 +00:00
|
|
|
build_system: [makefile, autotools, mymake]
|
2020-05-30 20:14:33 +00:00
|
|
|
hyper_use_rviz: [rviz_1, rviz_0]
|
|
|
|
hyper_use_png: [png_1]
|
|
|
|
hyper_use_glew: [glew_1]
|
2020-09-23 19:34:31 +00:00
|
|
|
env:
|
|
|
|
GH_OS: windows-latest
|
|
|
|
GH_COMPILER: ${{ matrix.compiler }}
|
|
|
|
GH_BUILDSYS: ${{ matrix.build_system }}
|
|
|
|
GH_HYP_RVIZ: ${{ matrix.hyper_use_rviz }}
|
|
|
|
GH_HYP_PNG: ${{ matrix.hyper_use_png }}
|
|
|
|
GH_HYP_GLEW: ${{ matrix.hyper_use_glew }}
|
2020-09-22 20:17:16 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: msys2 {0}
|
2020-05-30 20:14:33 +00:00
|
|
|
steps:
|
2020-09-22 20:17:16 +00:00
|
|
|
- uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
update: true
|
|
|
|
install: 'pactoys'
|
2020-05-30 20:14:33 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-09-23 19:34:31 +00:00
|
|
|
- name: Install build dependencies
|
2020-09-22 20:17:16 +00:00
|
|
|
env:
|
|
|
|
MSYSTEM: MSYS
|
|
|
|
run: .github/workflows/install_deps.sh
|
2020-09-23 19:34:31 +00:00
|
|
|
- name: Build
|
2020-09-22 20:17:16 +00:00
|
|
|
run: .github/workflows/build.sh
|
2020-09-23 19:34:31 +00:00
|
|
|
- name: Do a simple test
|
2020-09-22 20:17:16 +00:00
|
|
|
run: .github/workflows/test_simple.sh
|
2020-05-30 20:14:33 +00:00
|
|
|
|
|
|
|
emscripten:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-09-23 19:34:31 +00:00
|
|
|
- name: Build
|
2020-05-30 20:14:33 +00:00
|
|
|
run: |
|
|
|
|
docker run --rm -v $(pwd):/src trzeci/emscripten make -f Makefile.simple emscripten
|
2020-09-23 19:34:31 +00:00
|
|
|
- name: Do a simple test
|
2020-05-30 20:14:33 +00:00
|
|
|
run: |
|
|
|
|
ls -lAF hyper.html hyper.js hyper.wasm
|