Skip to content

Commit 32e568f

Browse files
committed
Add target
1 parent 78a50f9 commit 32e568f

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ jobs:
5353

5454
# ----------------------------
5555
# Stellar setup
56-
57-
- name: Set up Rust
58-
if: matrix.package == 'stellar'
59-
uses: actions-rs/toolchain@v1
60-
with:
61-
toolchain: 1.86.0
62-
profile: minimal
63-
override: true
6456

6557
- name: Get scaffold-stellar latest commit SHA
6658
if: matrix.package == 'stellar'
@@ -77,17 +69,31 @@ jobs:
7769
~/.cargo/registry/index/
7870
~/.cargo/registry/cache/
7971
~/.cargo/git/db/
80-
target/
72+
target/cli
8173
key: cargo-scaffold-${{ matrix.package }}-${{ steps.get-scaffold-sha.outputs.sha }}
8274
restore-keys: |
8375
cargo-scaffold-${{ matrix.package }}-
8476
cargo-scaffold-
8577
cargo-scaffold-
8678
79+
- name: Set up Rust
80+
if: matrix.package == 'stellar'
81+
uses: actions-rs/toolchain@v1
82+
with:
83+
toolchain: 1.86.0
84+
profile: minimal
85+
override: true
86+
8787
- name: Clean potentially conflicting wasm targets
8888
if: matrix.package == 'stellar'
8989
run: |
9090
rm -rf ~/.rustup/toolchains/*/lib/rustlib/wasm32v1-none || true
91+
rm -rf ~/.rustup/update-hashes || true
92+
rustup show
93+
94+
- name: Add wasm32v1 target
95+
if: matrix.package == 'stellar'
96+
run: rustup target add wasm32v1-none
9197

9298
- name: Set up Stellar CLI
9399
if: matrix.package == 'stellar'
@@ -100,7 +106,7 @@ jobs:
100106
local binary_name="$1"
101107
102108
if ! [ -x "$HOME/.cargo/bin/$binary_name" ]; then
103-
cargo install --git "https://github.com/ahalabs/scaffold-stellar" "$binary_name"
109+
cargo install --git "https://github.com/ahalabs/scaffold-stellar" "$binary_name" --target-dir target/cli
104110
fi
105111
}
106112

0 commit comments

Comments
 (0)