Skip to content

Commit

Permalink
Added workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Logaev <[email protected]>
  • Loading branch information
mxlgv committed Jan 21, 2025
1 parent ec3c7b0 commit 7e88ebc
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7e88ebc

Please sign in to comment.