ci: install dependencies with x64 Node.js while testing windows i686

This commit is contained in:
LongYinan 2022-03-13 18:36:16 +08:00
parent 5005aaa5af
commit 30310d0a81
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7

View file

@ -22,11 +22,12 @@ jobs:
with:
node-version: 16
check-latest: true
architecture: 'x86'
architecture: 'x64'
cache: 'yarn'
- name: 'Install dependencies'
run: yarn install --mode=skip-build --immutable --network-timeout 300000
run: |
yarn install --mode=skip-build --immutable
- name: 'Build TypeScript'
run: yarn build
@ -37,14 +38,7 @@ jobs:
toolchain: stable
profile: minimal
override: true
- name: Install i686 toolchain
run: rustup target add i686-pc-windows-msvc
- name: Generate Cargo.lock
uses: actions-rs/cargo@v1
with:
command: generate-lockfile
target: i686-pc-windows-msvc
- name: Cache cargo registry
uses: actions/cache@v2
@ -64,6 +58,13 @@ jobs:
command: check
args: --all --bins --examples --tests --target i686-pc-windows-msvc -vvv
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
check-latest: true
architecture: 'x86'
- name: Build Tests
run: |
yarn workspace compat-mode-examples build-i686 --release