Skip to content

Commit

Permalink
Use cached cargo-install (#2057)
Browse files Browse the repository at this point in the history
* CI: cache twiggy installation

* CI: cache twiggy installation without copypaste error

* Update .github/workflows/ci.yml

Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>

Co-authored-by: CI system <>
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
  • Loading branch information
TriplEight and tomaka authored Feb 17, 2022
1 parent 737b886 commit cda79af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ jobs:
- uses: actions/setup-node@v2.5.1
with:
node-version: '14'
- run: cargo install twiggy # TODO: somehow cache this in order to not compile twiggy every single time
- uses: baptiste0928/cargo-install@v1 # This action ensures that the twiggy compilation is cached.
with:
crate: twiggy
version: 0.6
- run: git checkout ${{ github.event.pull_request.base.sha }}
- run: cd bin/wasm-node/javascript && npm ci && npm run-script build
- run: cp ./target/wasm32-wasi/min-size-release/smoldot_light_wasm.wasm ./.ci-parent-build.wasm # TODO: maybe get the path from the `npm build` output or something?
Expand Down

0 comments on commit cda79af

Please sign in to comment.