Skip to content

Commit

Permalink
v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ricott1 committed Feb 9, 2025
1 parent d260073 commit 629cdfe
Show file tree
Hide file tree
Showing 15 changed files with 483 additions and 317 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy

on:
push:
tags:
- "v*.*.*"

permissions:
contents: write

jobs:
build-and-upload:

name: Build and upload
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Get the release version from the tag
shell: bash
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Build
run: cargo build --verbose --release

- name: Build archive
shell: bash
run: |
binary_name="minotaur"
dirname="$binary_name-${{ env.VERSION }}-x86_64-unknown-linux-gnu"
mkdir "$dirname"
mv "target/release/$binary_name" "$dirname"
tar -czf "$dirname.tar.gz" "$dirname"
echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
${{ env.ASSET }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Cargo.lock

images/
keys
TODO.md
TODO.md
autorelease.sh
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "minotaur"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
homepage = "https://github.com/ricott1/minotaur"
repository = "https://github.com/ricott1/minotaur"
Expand Down Expand Up @@ -34,9 +34,9 @@ log4rs = "1.3.0"
rand = "0.8.5"
rand_chacha = "0.3.1"
ratatui = { version = "0.29.0", features = ["unstable-backend-writer"] }
russh = "0.50.0"
strum = "0.26.3"
strum_macros = "0.26.4"
russh = "0.50.2"
strum = "0.27.0"
strum_macros = "0.27.0"
tokio = "1.43.0"
tokio-util = "0.7.13"
uuid = { version = "1.13.1", features = ["v4", "serde"] }
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,22 @@ Connect via SSH to try the game.
ssh frittura.org -p 2020
```

## Installation

### Build

You need to have the [rust toolchain](https://www.rust-lang.org/tools/install). Then you can clone the repo and build the game with

`cargo build --release`

### With cargo

`cargo install minotaur`

### Binaries

Download the binaries from the latest release.

## Run

Just run the binary to start the server. The port can be specified with the `-p <PORT>` flag.
5 changes: 2 additions & 3 deletions src/game/alarm_level.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use image::Rgba;
use strum::Display;

use super::GameColors;
use image::Rgba;
use strum_macros::Display;

#[derive(Clone, Copy, Debug, Display, PartialEq, PartialOrd)]
pub enum AlarmLevel {
Expand Down
3 changes: 1 addition & 2 deletions src/game/direction.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use strum::Display;
use strum_macros::EnumIter;
use strum_macros::{Display, EnumIter};

#[derive(Debug, Copy, Clone, Display, PartialEq, Eq, Hash, EnumIter)]
pub enum Direction {
Expand Down
Loading

0 comments on commit 629cdfe

Please sign in to comment.