Skip to content

Commit

Permalink
Update tutorial to download cardano-node from hydra release
Browse files Browse the repository at this point in the history
We will provide cardano-node binaries to our users for the time being
and instruct them to download it from the hydra release page.
  • Loading branch information
ch1bo committed Jan 8, 2024
1 parent 8894a44 commit ab285e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-tutorial.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
import re
with open("docs/docs/tutorial/index.md", "r") as tutorial:
body = tutorial.read()
usedCardanoNodeVersions = re.findall(r"cardano-node/releases/download/([0-9]+\.[0-9]+\.[0-9]+)", body)
usedCardanoNodeVersions = re.findall(r"cardano-node-.*-([0-9]+\.[0-9]+\.[0-9]+).zip", body)
with open("hydra-cluster/test/Test/CardanoNodeSpec.hs", "r") as cardanoNodeSpecFile:
body = cardanoNodeSpecFile.read()
Expand Down
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ To perform a release of next `<version>`:
push the branches `master`, `release` and the `<version>` tag.
5. Create a github release page containing
* The released changes (formatted) and giving credit where credit is due
* Attach static binaries to the release (or link the CI artifact)
* Built hydra (and cardano-node) binaries to the release using naming scheme:
`hydra-<platform>-<version>.zip` where `platform` is `x86_64-linux` or
`aarch64-darwin` (the same for `cardano-node` instead of `hydra`)
* The just published `hydra-scripts-tx-id` from step 1

[smoke-test]: https://github.com/input-output-hk/hydra/actions/workflows/smoke-test.yaml
Expand Down
12 changes: 6 additions & 6 deletions docs/docs/tutorial/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ mkdir -p bin
version=0.14.0
curl -L -O https://github.com/input-output-hk/hydra/releases/download/${version}/hydra-x86_64-linux-${version}.zip
unzip -d bin hydra-x86_64-linux-${version}.zip
curl -L -o - https://github.com/input-output-hk/cardano-node/releases/download/8.7.2/cardano-node-8.7.2-linux.tar.gz \
| tar xz -C bin ./cardano-node ./cardano-cli
curl -L -o - https://github.com/input-output-hk/hydra/releases/download/${version}/cardano-node-x86_64-linux-8.7.2.zip
unzip -d bin cardano-node-8.7.2-linux.zip
curl -L -o - https://github.com/input-output-hk/mithril/releases/download/2347.0/mithril-2347.0-linux-x64.tar.gz \
| tar xz -C bin mithril-client
chmod +x bin/*
Expand All @@ -58,12 +58,12 @@ chmod +x bin/*
mkdir -p bin
version=0.14.0
curl -L -O https://github.com/input-output-hk/hydra/releases/download/${version}/hydra-aarch64-darwin-${version}.zip
unzip -d bin hydra-aarch64-darwin-${HYDRA_VERSION}.zip
unzip -d bin hydra-aarch64-darwin-${version}.zip
curl -L -o - https://github.com/input-output-hk/hydra/releases/download/${version}/cardano-node-aarch-darwin-8.7.2.zip
unzip -d bin cardano-node-8.7.2-linux.zip
curl -L -o - https://github.com/input-output-hk/mithril/releases/download/2347.0/mithril-2347.0-macos-x64.tar.gz \
| tar xz -C bin
curl -L -o - https://github.com/input-output-hk/cardano-node/releases/download/8.7.2/cardano-node-8.7.2-macos.tar.gz \
| tar xz -C bin cardano-node cardano-cli '*.dylib'
chmod +x bin/mithril-client
chmod +x bin/*
```

</TabItem>
Expand Down

0 comments on commit ab285e8

Please sign in to comment.