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.

42 lines
986 B

10 months ago
  1. name: Linux Examples
  2. on:
  3. workflow_dispatch:
  4. push:
  5. paths:
  6. - 'src/**'
  7. - 'examples/**'
  8. - '.github/workflows/linux_examples.yml'
  9. pull_request:
  10. branches: [ master ]
  11. paths:
  12. - 'src/**'
  13. - 'examples/**'
  14. - '.github/workflows/linux_examples.yml'
  15. permissions:
  16. contents: read
  17. jobs:
  18. build:
  19. runs-on: ubuntu-latest
  20. steps:
  21. - name: Checkout code
  22. uses: actions/checkout@v4
  23. - name: Setup Environment
  24. run: |
  25. sudo apt-get update -qq
  26. 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 libwayland-dev libxkbcommon-dev
  27. - name: Build Library
  28. run: |
  29. cd src
  30. make PLATFORM=PLATFORM_DESKTOP CC=gcc RAYLIB_LIBTYPE=STATIC
  31. cd ..
  32. - name: Build Examples
  33. run: |
  34. cd examples
  35. make PLATFORM=PLATFORM_DESKTOP -B
  36. cd ..