Skip to content

Commit cffbf21

Browse files
committed
feat: rework the resolver
1 parent 5f261b0 commit cffbf21

File tree

16 files changed

+249
-4869
lines changed

16 files changed

+249
-4869
lines changed

.env

Lines changed: 0 additions & 7 deletions
This file was deleted.

.env.sample

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
IOTA_CUSTOM_NODE_ENDPOINT=
2+
IOTA_CUSTOM_IDENTITY_PKG_ID=
3+
4+
IOTA_MAINNET_IDENTITY_PKG_ID=
5+
IOTA_MAINNET_NODE_ENDPOINT=
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/actions/iota-sandbox/setup/action.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/actions/iota-sandbox/tear-down/action.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/clippy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
pull_request:
8-
types: [ opened, synchronize, reopened, ready_for_review ]
8+
types: [opened, synchronize, reopened, ready_for_review]
99
branches:
1010
- main
1111

@@ -23,6 +23,7 @@ jobs:
2323
cargo --version --verbose
2424
rustc --version
2525
cargo clippy --version
26+
2627
- name: Check formatting
2728
run: cargo fmt -- --check
2829
- name: Run clippy

.github/workflows/run-tests.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,30 @@ on:
55
branches:
66
- main
77
pull_request:
8-
types: [ opened, synchronize, reopened, ready_for_review ]
8+
types: [opened, synchronize, reopened, ready_for_review]
99
branches:
1010
- main
1111

1212
jobs:
1313
run-tests:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
15+
1516
steps:
1617
- uses: actions/checkout@v3
18+
1719
- name: Update local toolchain
1820
run: |
1921
rustup update
2022
rustup component add clippy
23+
2124
- name: Toolchain info
2225
run: |
2326
cargo --version --verbose
2427
rustc --version
2528
cargo clippy --version
26-
- name: Start iota sandbox
27-
uses: './.github/actions/iota-sandbox/setup'
29+
30+
- name: Setup IOTA Sandbox
31+
uses: ./.github/actions/iota-sandbox
32+
2833
- name: Run tests
2934
run: cargo test --release
30-
- name: Stop iota sandbox
31-
uses: './.github/actions/iota-sandbox/tear-down'

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
/target
2+
3+
Cargo.lock
4+
5+
.env

0 commit comments

Comments
 (0)