69 lines
1.6 KiB
YAML
69 lines
1.6 KiB
YAML
name: Windows i686
|
|
|
|
env:
|
|
DEBUG: 'napi:*'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build_and_test:
|
|
name: stable - windows-latest - i686 - node@18
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
cache: 'yarn'
|
|
|
|
- name: 'Install dependencies'
|
|
run: |
|
|
yarn install --mode=skip-build --immutable
|
|
|
|
- name: Install
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
toolchain: stable
|
|
targets: i686-pc-windows-msvc
|
|
|
|
- name: Cache cargo
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/registry
|
|
~/.cargo/git
|
|
target
|
|
key: stable-windows-i686-node@18-cargo-cache
|
|
|
|
- name: Check build
|
|
run: cargo check --all --bins --examples --tests --target i686-pc-windows-msvc -vvv
|
|
|
|
- name: Build
|
|
run: |
|
|
yarn workspace @examples/napi build --target i686-pc-windows-msvc --release
|
|
yarn workspace @examples/compat-mode build --target i686-pc-windows-msvc --release
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
architecture: 'x86'
|
|
|
|
- name: Build Tests
|
|
run: |
|
|
yarn test --verbose
|
|
node ./node_modules/electron/install.js
|
|
yarn test:electron
|
|
env:
|
|
RUST_BACKTRACE: 1
|