chore: Setup build workflow

This commit is contained in:
2026-05-24 09:46:53 +05:30
parent 02fb6ed612
commit 5f9f41137a
2 changed files with 39 additions and 0 deletions

31
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Build and Release
on:
push:
tags:
- 'v*' # Triggers automatically when you push a tag like v1.0.0
jobs:
build:
runs-on: ubuntu-22.04 # Using an older LTS ensures maximum glibc compatibility
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libsdl2-dev libsdl2-image-dev pkg-config
- name: Compile binary
run: make
- name: Rename binary for distribution
run: mv game-splash game-splash-linux-x86_64
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: game-splash-linux-x86_64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -19,6 +19,14 @@ A fullscreen splash-screen wrapper for launching a game or app. It displays an i
## Install
Arch Linux (PKGBUILD) for integrating with your system package manager:
```bash
makepkg -si
```
For other distributions, build and install manually:
```bash
make
sudo make install