Skip to content

Commit 9c34614

Browse files
authored
fix: make sure cargo-near is installed from binary release (#1471)
1 parent ec5241a commit 9c34614

2 files changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,19 @@ jobs:
186186
uses: taiki-e/install-action@81ee1d48d9194cdcab880cbdc7d36e87d39874cb # v2.62.45
187187
with:
188188
tool: nextest@0.9.106
189-
190-
- name: Install cargo-near deps
191-
run: sudo apt-get update && sudo apt-get install --assume-yes libudev-dev
192-
- name: Install cargo-near
189+
190+
- name: Install cargo-binstall
193191
uses: taiki-e/install-action@81ee1d48d9194cdcab880cbdc7d36e87d39874cb # v2.62.45
194192
with:
195-
tool: cargo-near@0.17.0
193+
tool: cargo-binstall@1.16.0
194+
- name: Install cargo-near
195+
run: |
196+
sudo apt-get update && sudo apt-get install --assume-yes libudev-dev
197+
cargo binstall --force --no-confirm --locked cargo-near@0.17.0 --pkg-url="{ repo }/releases/download/{ name }-v{ version }/{ name }-{ target }.{ archive-format }"
196198
197-
- name: Install wasm-opt from crates.io
199+
- name: Install wasm-opt
198200
run: |
199-
cargo install wasm-opt --locked
201+
cargo binstall --force --no-confirm --locked wasm-opt@0.116.1
200202
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH
201203
202204
- name: Run cargo-nextest
@@ -255,16 +257,18 @@ jobs:
255257
- name: Build mpc node
256258
run: cargo build -p mpc-node --release --features=network-hardship-simulation
257259

258-
- name: Install cargo-near deps
259-
run: sudo apt-get update && sudo apt-get install --assume-yes libudev-dev
260-
- name: Install cargo-near
260+
- name: Install cargo-binstall
261261
uses: taiki-e/install-action@81ee1d48d9194cdcab880cbdc7d36e87d39874cb # v2.62.45
262262
with:
263-
tool: cargo-near@0.17.0
263+
tool: cargo-binstall@1.16.0
264+
- name: Install cargo-near
265+
run: |
266+
sudo apt-get update && sudo apt-get install --assume-yes libudev-dev
267+
cargo binstall --force --no-confirm --locked cargo-near@0.17.0 --pkg-url="{ repo }/releases/download/{ name }-v{ version }/{ name }-{ target }.{ archive-format }"
264268
265-
- name: Install wasm-opt from crates.io
269+
- name: Install wasm-opt
266270
run: |
267-
cargo install wasm-opt --locked
271+
cargo binstall --force --no-confirm --locked wasm-opt@0.116.1
268272
echo "${HOME}/.cargo/bin" >> $GITHUB_PATH
269273
270274
- name: Setup python

.github/workflows/docker_build_launcher.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
build-and-push-images:
1515
name: "Build and push Docker launcher image with commit hash"
16-
runs-on: warp-ubuntu-2404-x64-8x
16+
runs-on: warp-ubuntu-2404-x64-2x
1717
permissions:
1818
contents: read
1919

0 commit comments

Comments
 (0)