build.yml 942 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. name: Smoke tests
  2. on:
  3. push:
  4. branches-ignore:
  5. - 'test-*'
  6. jobs:
  7. build:
  8. name: Build
  9. runs-on: ${{matrix.os}}
  10. strategy:
  11. matrix:
  12. os: [macos-latest, ubuntu-latest, windows-latest]
  13. steps:
  14. - name: Check out code
  15. uses: actions/checkout@v1
  16. - name: Install Linux dependencies
  17. if: startsWith(matrix.os, 'ubuntu')
  18. run: sudo apt install libgl-dev libglu1-mesa-dev xvfb
  19. - name: Compile
  20. shell: bash
  21. working-directory: ./ci
  22. run: make
  23. - name: Run tests (Linux)
  24. if: startsWith(matrix.os, 'ubuntu')
  25. shell: bash
  26. working-directory: ./ci
  27. run: xvfb-run ./ci
  28. - name: Run tests (macOS)
  29. if: startsWith(matrix.os, 'macos')
  30. shell: bash
  31. working-directory: ./ci
  32. run: ./ci 1
  33. - name: Run tests (Windows)
  34. if: startsWith(matrix.os, 'windows')
  35. shell: bash
  36. working-directory: ./ci
  37. run: ./ci.exe 0