From c8e91cb3f4d8412fe16c7920272e172908b7fab1 Mon Sep 17 00:00:00 2001
From: AnonymusRaccoon
Date: Fri, 14 Feb 2020 18:27:42 +0100
Subject: [PATCH] Adding TGUI to the dependencies of the CI
---
.github/workflows/build.yml | 8 ++++++++
.github/workflows/buildwin.yml | 6 ++++++
2 files changed, 14 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index a405394..26ab7bf 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,6 +14,14 @@ jobs:
- name: Install the SFML.
run: sudo apt-get update &&
sudo apt-get install --yes libsfml-dev
+ - name: Install TGUI.
+ run: |
+ git clone https://github.com/texus/TGUI -b 0.8 /tmp/tgui
+ cd /tmp/tgui
+ mkdir build
+ cd build
+ cmake ..
+ make -j 4 && sudo make install
- name: Build Makefile with CMake
run: mkdir -p build && cd build && cmake ..
- name: Build with Makefile
diff --git a/.github/workflows/buildwin.yml b/.github/workflows/buildwin.yml
index 7943386..2ed2f08 100644
--- a/.github/workflows/buildwin.yml
+++ b/.github/workflows/buildwin.yml
@@ -16,6 +16,12 @@ jobs:
Invoke-WebRequest -Uri https://www.sfml-dev.org/files/SFML-2.5.1-windows-gcc-7.3.0-mingw-64-bit.zip -OutFile sfml.zip
Expand-Archive sfml.zip -DestinationPath . -Force
Move-Item -Path SFML-2.5.1 -Destination build
+ - name: Install TGUI.
+ run: |
+ Invoke-WebRequest -Uri https://github.com/texus/TGUI/releases/download/v0.8.6/TGUI-0.8.6-mingw-7.3.0-64bit-for-SFML-2.5.1.zip -OutFile tgui.zip
+ Expand-Archive tgui.zip -DestinationPath . -Force
+ Move-Item -Path TGUI-0.8/lib/lib* -Destination build/lib
+ Move-Item -Path TGUI-0.8/include/* -Destination build/include
- name: Build Makefile with CMake
run: |
Set-Location build