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: with:
node-version: 16 node-version: 16
check-latest: true check-latest: true
architecture: 'x86' architecture: 'x64'
cache: 'yarn' cache: 'yarn'
- name: 'Install dependencies' - name: 'Install dependencies'
run: yarn install --mode=skip-build --immutable --network-timeout 300000 run: |
yarn install --mode=skip-build --immutable
- name: 'Build TypeScript' - name: 'Build TypeScript'
run: yarn build run: yarn build
@ -37,14 +38,7 @@ jobs:
toolchain: stable toolchain: stable
profile: minimal profile: minimal
override: true override: true
target: i686-pc-windows-msvc
- 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
- name: Cache cargo registry - name: Cache cargo registry
uses: actions/cache@v2 uses: actions/cache@v2
@ -64,6 +58,13 @@ jobs:
command: check command: check
args: --all --bins --examples --tests --target i686-pc-windows-msvc -vvv 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 - name: Build Tests
run: | run: |
yarn workspace compat-mode-examples build-i686 --release yarn workspace compat-mode-examples build-i686 --release