From 42be782d36dc6f9ecf8eb2e3832b60f1f5fc0687 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 28 Jun 2021 11:25:01 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2432eca..96b7cd6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,17 +23,9 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 + with: + submodules: recursive - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. - - name: Setup Python uses: actions/setup-python@v2.2.2 with: @@ -41,3 +33,14 @@ jobs: python-version: 3.9 # The target architecture (x86, x64) of the Python interpreter. architecture: x64 + + # Runs a set of commands using the runners shell + - name: Build raylib + run: | + sudo apt install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev + cd raylib-c + mkdir build + cd build + cmake -DWITH_PIC=on -DCMAKE_BUILD_TYPE=Release .. + sudo make install +