Skip to content

Commit

Permalink
build artifact (#5)
Browse files Browse the repository at this point in the history
* build artifact

* renaming CI workflows + test release

* release on tag
  • Loading branch information
H4kor committed Dec 18, 2023
1 parent fc57563 commit f5e97bb
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 5 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

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

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Install GTK
run: sudo apt-get install -y libgtk-4-dev build-essential
- name: Build
run: |
cargo build --release --target x86_64-unknown-linux-gnu
mv target/x86_64-unknown-linux-gnu/release/dungeon_planner dungeon_planner_x86_64
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: dungeon_planner
path: dungeon_planner_x86_64
retention-days: 14
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dungeon_planner_x86_64
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Run Tests

on:
push:
Expand Down
39 changes: 35 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
***This project is still an in early stage. I've started to use it for my own games and will try not to break project files. But no guarantees yet!***

[![Rust](https://github.com/H4kor/dungeon-planner/actions/workflows/rust.yml/badge.svg)](https://github.com/H4kor/dungeon-planner/actions/workflows/rust.yml)

# Dungeon Planner

Dungeon Planner is a small and simple tool to plan and organize dungeons for tabletop games.
Expand Down Expand Up @@ -27,13 +29,42 @@ Dungeons can be exported as PDF.

- [x] Grid
- [x] Drawing chambers using straight edges
- [x] Grid Snapping
- [ ] Placing object markers (stairs, chests)
- [x] Grid Snapping
- [x] Assign doors/properties to edges
- [ ] hidden doors
- [ ] hidden doors and chambers
- [x] GM Notes on chambers
- [ ] Prints
- [x] Full map with numbers assigned to chambers
- [x] GM Notes
- [ ] Chambers seperated to cut out
- [ ] Labels to show neigboring chambers (not on hidden chambers)
- [ ] Player Map
- [ ] Placing object markers (stairs, chests)


## Developmnet

### Setup

[Install GTK dependencies](https://gtk-rs.org/gtk4-rs/stable/latest/book/installation.html). This project requires at least GTK 4.6 (standard for Ubuntu 22.04).


### Tests

```
cargo test
```

### Run Development Version

```
cargo run
```

### Build Release Version

```
cargo build --release
```



0 comments on commit f5e97bb

Please sign in to comment.