Skip to content

Commit

Permalink
gh build action: name archives incl refname
Browse files Browse the repository at this point in the history
  • Loading branch information
renerocksai committed Jun 17, 2022
1 parent c86df3a commit 6e0bc49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-zig-9.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.draft_release.outputs.upload_url }}
asset_path: ./zig-out/bin/slides.tar.gz
asset_name: slides-linux-release.tar.gz
asset_path: ./slides.tar.gz
asset_name: slides-linux-release-${{ github.refname }}.tar.gz
asset_content_type: application/gzip

build-windows:
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
with:
upload_url: ${{ needs.draft_release.outputs.upload_url }}
asset_path: ./slides-win64.zip
asset_name: slides-win64-release.zip
asset_name: slides-win64-release-${{ github.refname }}.zip
asset_content_type: application/zip

# macos needs a little work
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This project is both a case study and also marks my first steps in the programmi

This app is supposed to be much simpler and quicker to use (for people like me) than my more powerful take on the whole slideshow matter, [Bûllets](https://github.com/renerocksai/bullets), while still being totally functional. The reason for increased ease of use and speed is that, with slides, entire slideshows can be expressed in an easy text format, and it can also be used in tandem with an external text editor such as [neovim](https://neovim.io/).

If you want to play with _slides_ you can download the current release from the [releases section](https://github.com/renerocksai/slides/releases) on GitHub. I will release versions as I see fit. Please note, that currently, the releases are a bit outdated. I am re-working the build and release pipeline.
If you want to play with _slides_ you can download the current release from the [releases section](https://github.com/renerocksai/slides/releases) on GitHub. I will release versions as I see fit.

## Highlights

Expand Down Expand Up @@ -60,7 +60,7 @@ In addition, this project also serves as a case study for myself where I test ou

This project achieves what I set out for in the following ways:

- **portability:** zig allows for cross-platform development. If it weren't for OpenGL and SDL dependencies, even cross-compilation for all platforms would work out of the box. While that can probably be solved, I am OK with building releases on two platforms for now.
- **portability:** zig allows for cross-platform development. If it weren't for OpenGL (, ...) dependencies, even cross-compilation for all platforms would work out of the box. While that can probably be solved, I am OK with building releases on two platforms for now.
- the result is a free-standing executable, only a few MB in size that needs no installer
- **easy to get started with:** just download, start and go!
- **no external dependencies:** all you need to create presentations is the program itself. No other software is required. The builtin editor is not the greatest but since slides watches your files, you can use an external editor, too. Changes will be loaded everytime you save.
Expand Down Expand Up @@ -294,10 +294,6 @@ zig build slides

To just build: `zig build`. This will create the executable `slides` in `./zig-out/bin/`.

**Note regarding Windows:** while I can make release builds on my windows laptop, I could not reproduce a working
windows setup via GitHub actions, starting from a clean machine. So I can only release debug builds for windows
automatically (GitHub Actions).

## Tested with

- zig `0.9.1` (release)

0 comments on commit 6e0bc49

Please sign in to comment.