1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
name: Github CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
main_matrix:
name: Unix
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
compiler: [gcc, clang]
build_system: [makefile, mymake]
hyper_use_rviz: [rviz_1, rviz_0]
hyper_use_png: [png_1]
hyper_use_glew: [glew_1]
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 }}
steps:
- uses: actions/checkout@v2
- name: Install build dependencies
run: .github/workflows/install_deps.sh
- name: Build
run: .github/workflows/build.sh
- name: Do a simple test
run: .github/workflows/test_simple.sh
windows:
name: Windows
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
compiler: [gcc]
build_system: [makefile, mymake]
hyper_use_rviz: [rviz_1, rviz_0]
hyper_use_png: [png_1]
hyper_use_glew: [glew_1]
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 }}
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: 'pactoys'
- uses: actions/checkout@v2
- name: Install build dependencies
env:
MSYSTEM: MSYS
run: .github/workflows/install_deps.sh
- name: Build
run: .github/workflows/build.sh
- name: Do a simple test
run: .github/workflows/test_simple.sh
emscripten:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: |
docker run --rm -v $(pwd):/src trzeci/emscripten make emscripten
- name: Do a simple test
run: |
ls -lAF hyper.html hyper.js hyper.wasm
|