Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Senichev <[email protected]>
  • Loading branch information
artemsen committed Jan 14, 2024
1 parent 7cc0040 commit 4c9d9a7
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
Binary file added .github/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI
on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Install dependencies
run: >
sudo apt install --no-install-recommends --yes
build-essential meson libsdl2-dev libsdl2-image-dev
- name: Check out source code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get version
run: echo "VERSION=$(git describe --tags --long --always | sed 's/^v//;s/-/./')" >> $GITHUB_OUTPUT
id: version

- name: Configure
run: meson -Dversion=${{steps.version.outputs.VERSION}} --buildtype release --prefix /usr ./build
- name: Build
run: ninja -C ./build
- name: Install
run: DESTDIR=install ninja -C ./build install
- name: Check
run: pipewaker --version
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This is a puzzle game in which you need to combine the components into
a single circuit: connect all computers to a network server, bring water
to the taps, etc.

![Screenshot](https://raw.githubusercontent.com/artemsen/pipewalker/master/.github/screenshot.png)

## Install

[![Packaging status](https://repology.org/badge/tiny-repos/pipewalker.svg)](https://repology.org/project/pipewalker/versions)
Expand All @@ -12,8 +14,9 @@ List of supported distributives can be found on the [Repology page](https://repo

## Build

The project uses Meson build system:
To build a project you need a C++ compiler, meson, libraries SDL2 and SDL2 image:
```
sudo apt install build-essential libsdl2-dev libsdl2-image-dev
meson setup --buildtype=release build
ninja -C build
sudo ninja -C build install
Expand Down

0 comments on commit 4c9d9a7

Please sign in to comment.