summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/linux_examples.yml
blob: c268f479648e9d0cba835f171c6983572d8030ec (plain)
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
name: Linux Examples

on:
  push:
  pull_request:
    branches: [ master ]
    paths:
    - 'examples/**'

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout code
      uses: actions/checkout@v2
    
    - name: Setup Environment
      run: | 
        sudo apt-get update -qq
        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
        
    - name: Build Library
      run: |
        cd src
        make PLATFORM=PLATFORM_DESKTOP CC=gcc RAYLIB_LIBTYPE=STATIC
        cd ..
        
    - name: Build Examples
      run: |
        cd examples
        make PLATFORM=PLATFORM_DESKTOP -B
        cd ..