You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
739 B

  1. name: Linux Examples
  2. on:
  3. push:
  4. pull_request:
  5. branches: [ master ]
  6. paths:
  7. - 'examples/**'
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout code
  13. uses: actions/checkout@v2
  14. - name: Setup Environment
  15. run: |
  16. sudo apt-get update -qq
  17. sudo apt-get install -y --no-install-recommends libglfw3 libglfw3-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev
  18. - name: Build Library
  19. run: |
  20. cd src
  21. make PLATFORM=PLATFORM_DESKTOP CC=gcc RAYLIB_LIBTYPE=STATIC
  22. cd ..
  23. - name: Build Examples
  24. run: |
  25. cd examples
  26. make PLATFORM=PLATFORM_DESKTOP -B
  27. cd ..