1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-24 05:17:17 +00:00
hyperrogue/.github/workflows/github_ci.yml

88 lines
2.2 KiB
YAML
Raw Normal View History

2020-05-30 20:14:33 +00:00
name: Github CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
main_matrix:
name: Unix
2020-05-30 20:14:33 +00:00
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
2024-04-28 00:18:18 +00:00
# os: [ubuntu-latest, macos-latest]
# macos is broken for now
os: [ubuntu-latest]
2020-05-30 20:14:33 +00:00
compiler: [gcc, clang]
build_system: [makefile, 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]
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
- name: Install build dependencies
2020-05-30 20:14:33 +00:00
run: .github/workflows/install_deps.sh
- name: Build
2020-05-30 20:14:33 +00:00
run: .github/workflows/build.sh
- name: Do a simple test
2020-05-30 20:14:33 +00:00
run: .github/workflows/test_simple.sh
windows:
name: Windows
runs-on: windows-latest
2020-05-30 20:14:33 +00:00
strategy:
fail-fast: false
matrix:
compiler: [gcc]
build_system: [makefile, 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]
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}
2020-05-30 20:14:33 +00:00
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: 'pactoys'
2020-05-30 20:14:33 +00:00
- 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
2020-05-30 20:14:33 +00:00
2024-04-28 00:26:24 +00:00
# broken for now
# 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