Skip to content

Commit

Permalink
Change binaries naming and update "Installation" docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rremizov committed May 3, 2020
1 parent 2dbcc62 commit 60b794b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build/borg-repo-stats.linux-amd64
asset_name: borg-repo-stats.linux-amd64
asset_path: ./build/borg-repo-stats.Linux-x86_64
asset_name: borg-repo-stats.Linux-x86_64
asset_content_type: application/octet-stream

- name: Upload arm5 binary
Expand All @@ -54,6 +54,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build/borg-repo-stats.linux-arm5
asset_name: borg-repo-stats.linux-arm5
asset_path: ./build/borg-repo-stats.Linux-armv5l
asset_name: borg-repo-stats.Linux-armv5l
asset_content_type: application/octet-stream
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
all: build/borg-repo-stats.linux-amd64 build/borg-repo-stats.linux-arm5
all: build/borg-repo-stats.Linux-armv5l build/borg-repo-stats.Linux-x86_64

build:
mkdir build

build/borg-repo-stats.linux-arm5: build
build/borg-repo-stats.Linux-armv5l: build
GOOS=linux GOARCH=arm GOARM=5 go build -o $@

build/borg-repo-stats.linux-amd64: build
build/borg-repo-stats.Linux-x86_64: build
GOOS=linux GOARCH=amd64 go build -o $@

clean:
Expand Down
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ Installation

.. code:: sh
# TODO
$ base=https://github.com/rremizov/borg-repo-stats/releases/latest/download/ &&
curl -L $base/borg-repo-stats.$(uname -s)-$(uname -m) > /tmp/borg-repo-stats &&
sudo mv /tmp/borg-repo-stats /usr/local/bin/borg-repo-stats &&
chmod +x /usr/local/bin/borg-repo-stats
Usage
-----
Expand Down

0 comments on commit 60b794b

Please sign in to comment.