Skip to content

Commit 0e61fd4

Browse files
committed
chore: add rebase sandbox
1 parent 4680834 commit 0e61fd4

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "iota-private-network setup"
2+
description: "Setup IOTA Sandbox"
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Set up IOTA Node
8+
shell: bash
9+
run: |
10+
set -e
11+
mkdir -p iota
12+
cd iota
13+
14+
# Set platform
15+
PLATFORM="${{ inputs.platform }}"
16+
echo "Looking for platform: $PLATFORM"
17+
18+
# pinned releases from:
19+
# url = https://api.github.com/repos/iotaledger/iota/releases/latest
20+
# releases might be visible before all binaries are available, so refer to fixed binaries here
21+
22+
DOWNLOAD_URL="https://github.com/iotaledger/iota/releases/download/v0.7.3-rc/iota-v0.7.3-rc-linux-x86_64.tgz"
23+
24+
25+
# Download and extract
26+
echo "Downloading from: $DOWNLOAD_URL"
27+
curl -L -o iota.tar.gz $DOWNLOAD_URL
28+
tar -xzf iota.tar.gz
29+
30+
echo "$PWD" >> $GITHUB_PATH
31+
export PATH="$PWD:$PATH"
32+
33+
which iota || echo "iota not found in PATH"
34+
ls -la "$PWD"

.github/workflows/run-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@ jobs:
2727
rustc --version
2828
cargo clippy --version
2929
30+
- name: Setup IOTA Sandbox
31+
uses: ./.github/actions/iota-sandbox
32+
3033
- name: Run tests
3134
run: cargo test --release

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/target
22

3+
Cargo.lock
34

45
.env

0 commit comments

Comments
 (0)