ci: use moonrepo/setup-rust (#770)
* ci: use moonrepo/setup-rust * ci: fix typo * chore: don't clippy for nowmain
parent
6023afbd4f
commit
f835106dc2
|
@ -9,11 +9,11 @@ jobs:
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: moonrepo/setup-rust@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
cache: false
|
||||||
override: true
|
inherit-toolchain: true
|
||||||
- name: Cache cargo registry
|
- name: Cache cargo registry
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
@ -47,11 +47,10 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: moonrepo/setup-rust@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: stable
|
inherit-toolchain: true
|
||||||
override: true
|
|
||||||
- name: Cache cargo registry
|
- name: Cache cargo registry
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
@ -71,11 +70,10 @@ jobs:
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: moonrepo/setup-rust@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: 1.58.1
|
inherit-toolchain: true
|
||||||
override: true
|
|
||||||
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
- run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
||||||
- run: rustup target add wasm32-unknown-unknown
|
- run: rustup target add wasm32-unknown-unknown
|
||||||
- run: cd docx-wasm && yarn install && yarn wasm-pack:node && yarn wasm-pack:dev && tsc -p tsconfig.node.json && yarn test
|
- run: cd docx-wasm && yarn install && yarn wasm-pack:node && yarn wasm-pack:dev && tsc -p tsconfig.node.json && yarn test
|
||||||
|
@ -85,13 +83,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: moonrepo/setup-rust@v1
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
inherit-toolchain: true
|
||||||
toolchain: 1.56.1
|
components: clippy
|
||||||
override: true
|
# TODO(@unvalley): enable
|
||||||
- run: rustup component add clippy
|
# - run: cargo clippy -- -D warnings
|
||||||
- uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: clippy
|
|
||||||
args: -- -D warnings
|
|
Loading…
Reference in New Issue