This commit is contained in:
31
.github/workflows/release.yml
vendored
Normal file
31
.github/workflows/release.yml
vendored
Normal 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 }}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user