Skip to content

Commit

Permalink
feat: Installer action for binstall (#264)
Browse files Browse the repository at this point in the history
# Motivation
We would like to replace `wasm-nm`, which is unmaintained, with
`ic-wasm`. The latter is installed with `binstall` in the `nns-dapp`
repo. We propose to follow the same pattern, the only difference being
where the binstall version is stored.

# Changes
- Add a GitHUb action that installs binstall.#263 

# Tests
The code is exercised heavily in `nns-dapp`, differing only in where
`BINSTALL_VERSION` is sourced from.

Co-authored-by: Max Murphy <max@winning.black>
  • Loading branch information
bitdivine and bitdivine authored Nov 8, 2023
1 parent 5e15f81 commit a379abf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/actions/install_binstall/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Installs binstall'
description: |
Installs `cargo binstall` at the version specified in `bin/versions.bash`
runs:
using: "composite"
steps:
- name: Install binstall
shell: bash
run: |
. bin/versions.bash
curl -L --proto '=https' --tlsv1.2 -sSf "https://github.com/cargo-bins/cargo-binstall/releases/download/v${BINSTALL_VERSION}/cargo-binstall-x86_64-unknown-linux-musl.tgz" | tar -xvzf -
./cargo-binstall -y --force "cargo-binstall@$BINSTALL_VERSION"
1 change: 1 addition & 0 deletions bin/versions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ NNS_DAPP_RELEASE=proposal-121690
DIDC_VERSION=2023-07-25
QUILL_VERSION=0.4.0
IDL2JSON_VERSION=0.8.5
BINSTALL_VERSION=1.3.0

0 comments on commit a379abf

Please sign in to comment.