Skip to content

Commit

Permalink
refactor workflow and install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Dec 8, 2024
1 parent ce1bd18 commit a3e304e
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 113 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/pre-releases.yml

This file was deleted.

86 changes: 0 additions & 86 deletions .github/workflows/release.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Releases

on:
push:
branches:
- master
- v1.0.0 # HACK

jobs:
release:
uses: pimalaya/nix/.github/workflows/releases.yml@master
secrets: inherit
with:
project: himalaya
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ $ himalaya envelope list --account posteo --folder Archives.FOSS --page 2

These commands install the latest binary from the GitHub [releases](https://github.com/pimalaya/himalaya/releases) section.

If you want a more up-to-date version than the latest release, check out the [`pre-releases`](https://github.com/pimalaya/himalaya/actions/workflows/pre-releases.yml) GitHub workflow and look for the *Artifacts* section. You should find a pre-built binary matching your OS. These pre-built binaries are built from the `master` branch.
If you want a more up-to-date version than the latest release, check out the [`releases`](https://github.com/pimalaya/himalaya/actions/workflows/releases.yml) GitHub workflow and look for the *Artifacts* section. You should find a pre-built binary matching your OS. These pre-built binaries are built from the `master` branch.

*Such binaries are built with the default cargo features. If you want to enable or disable a feature, please use another installation method.*
</details>
Expand Down
9 changes: 6 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ die() {

DESTDIR="${DESTDIR:-}"
PREFIX="${PREFIX:-"$DESTDIR/usr/local"}"
RELEASES_URL="https://github.com/soywod/himalaya/releases"
RELEASES_URL="https://github.com/pimalaya/himalaya/releases"

binary=himalaya
system=$(uname -s | tr [:upper:] [:lower:])
Expand All @@ -23,14 +23,17 @@ case $system in
linux|freebsd)
case $machine in
x86_64) target=x86_64-linux;;
x86|i386|i686) target=i686-linux;;
arm64|aarch64) target=aarch64-linux;;
armv6l) target=armv6l-linux;;
armv7l) target=armv7l-linux;;
*) die "Unsupported machine $machine for system $system";;
esac;;

darwin)
case $machine in
x86_64) target=x86_64-macos;;
arm64|aarch64) target=aarch64-macos;;
x86_64) target=x86_64-darwin;;
arm64|aarch64) target=aarch64-darwin;;
*) die "Unsupported machine $machine for system $system";;
esac;;

Expand Down

0 comments on commit a3e304e

Please sign in to comment.