From 0b900d1811f1777824ca0bd30dd2fdc8971f0994 Mon Sep 17 00:00:00 2001 From: Maxim Logaev Date: Tue, 21 Jan 2025 10:36:37 +0300 Subject: [PATCH] Added workflow Signed-off-by: Maxim Logaev --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b5a986a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build +on: [pull_request, push] +jobs: + build: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install build-essential libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev g++-mingw-w64-i686 + + - name: Build for Ubuntu + run: | + cmake -B build-ubuntu + cmake --build build-ubuntu + + - name: Upload for Ubuntu + uses: actions/upload-artifact@v4 + with: + name: GravityDefied + path: build-ubuntu/GravityDefied + + - name: Build for Windows + run: | + cmake -DCMAKE_TOOLCHAIN_FILE=cmake/mingw-toolchain.cmake -B build-win32 + cmake --build build-win32 + + - name: Upload for Windows + uses: actions/upload-artifact@v4 + with: + name: GravityDefied.exe + path: build-win32/GravityDefied.exe diff --git a/README.md b/README.md index f96a492..1a2f80d 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This is the C++ & SDL2 port of Gravity Defied, which includes all the features o ### Gravity Defied Cpp authors * **[rgimad](https://github.com/rgimad)** - idea & coding * **[AntonEvmenenko](https://github.com/AntonEvmenenko)** - coding -* **[turbocat2001](https://github.com/turbocat2001)** - coding +* **[Max Logaev](https://github.com/mxlgv)** - coding ### Codebrew GDTR Authors