Skip to content

Commit

Permalink
Setup toolchain in separate CI step
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Dec 27, 2023
1 parent 25b8603 commit b7abbbe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Setup nightly Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-12-12
target: wasm32-unknown-unknown
profile: minimal
components: rust-src
- name: Run tests
working-directory: ./test
run: |
rustup component add rust-src
npm ci
npm test
14 changes: 12 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,21 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Setup stable Rust
uses: actions-rs/toolchain@v1
with:
target: wasm32-unknown-unknown
profile: minimal
- name: Setup nightly Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-12-12
target: wasm32-unknown-unknown
profile: minimal
components: rust-src
- name: Build demo
working-directory: ./demo
run: |
rustup toolchain add nightly-2022-12-12
rustup component add rust-src --toolchain nightly-2022-12-12
npm ci
npm run build
- name: Deploy 🚀
Expand Down

0 comments on commit b7abbbe

Please sign in to comment.