Fix CI
This commit is contained in:
parent
4c7b9d83d7
commit
9d3c12bf4e
2 changed files with 28 additions and 3 deletions
5
.github/workflows/check.yml
vendored
5
.github/workflows/check.yml
vendored
|
|
@ -38,7 +38,8 @@ jobs:
|
|||
|
||||
- name: Setup rust
|
||||
run: |
|
||||
cargo install wasm-pack cargo-machete
|
||||
which wasm-pack || cargo install wasm-pack
|
||||
which wasm-machete || cargo install wasm-machete
|
||||
|
||||
- name: Build wasm
|
||||
run: |
|
||||
|
|
@ -121,7 +122,7 @@ jobs:
|
|||
|
||||
- name: Setup rust
|
||||
run: |
|
||||
cargo install wasm-pack
|
||||
which wasm-pack || cargo install wasm-pack
|
||||
|
||||
- name: Build wasm
|
||||
run: |
|
||||
|
|
|
|||
26
.github/workflows/gh-pages.yml
vendored
26
.github/workflows/gh-pages.yml
vendored
|
|
@ -27,10 +27,34 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Cache Rust dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-cargo-
|
||||
|
||||
- name: Cache npm dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
reconcile-js/node_modules
|
||||
~/.npm
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('reconcile-js/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-npm-
|
||||
|
||||
- name: Build wasm
|
||||
run: |
|
||||
cargo install wasm-pack
|
||||
which wasm-pack || cargo install wasm-pack
|
||||
scripts/build-website.sh
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue