napi-rs/.github/workflows/windows-i686.yml

74 lines
1.6 KiB
YAML
Raw Normal View History

name: Windows i686
env:
DEBUG: 'napi:*'
on:
push:
2020-12-03 17:30:14 +09:00
branches:
- main
pull_request:
jobs:
build_and_test:
2022-12-09 18:29:03 +09:00
name: stable - windows-latest - i686 - node@18
runs-on: windows-latest
steps:
2022-04-01 15:29:51 +09:00
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
2022-12-09 18:29:03 +09:00
node-version: 18
2021-11-19 15:58:21 +09:00
check-latest: true
architecture: 'x64'
2021-11-19 15:58:21 +09:00
cache: 'yarn'
2020-11-10 12:09:25 +09:00
- name: 'Install dependencies'
run: |
yarn install --mode=skip-build --immutable
2020-11-10 12:09:25 +09:00
- name: 'Build TypeScript'
run: yarn build
- name: Install
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: i686-pc-windows-msvc
2022-04-01 15:29:51 +09:00
- name: Cache cargo
uses: actions/cache@v3
with:
2022-04-15 22:22:04 +09:00
path: |
~/.cargo/registry
~/.cargo/git
target
key: stable-windows-i686-node@16-cargo-cache
- name: Check build
uses: actions-rs/cargo@v1
with:
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'
2020-11-10 12:09:25 +09:00
- name: Build Tests
run: |
2022-03-13 19:28:41 +09:00
yarn workspace compat-mode-examples build-i686 --release
yarn workspace examples build-i686 --release
yarn test --verbose
2022-05-10 18:29:43 +09:00
node ./node_modules/electron/install.js
yarn test:electron
2020-11-10 12:09:25 +09:00
env:
RUST_BACKTRACE: 1