2020-11-04 23:52:13 +09:00
|
|
|
name: Windows i686
|
|
|
|
|
|
|
|
env:
|
|
|
|
DEBUG: 'napi:*'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-12-03 17:30:14 +09:00
|
|
|
branches:
|
|
|
|
- main
|
2020-11-04 23:52:13 +09:00
|
|
|
pull_request:
|
|
|
|
|
2023-03-12 19:31:13 +09:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-11-04 23:52:13 +09:00
|
|
|
jobs:
|
|
|
|
build_and_test:
|
2022-12-09 18:29:03 +09:00
|
|
|
name: stable - windows-latest - i686 - node@18
|
2020-11-04 23:52:13 +09:00
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
2022-04-01 15:29:51 +09:00
|
|
|
- uses: actions/checkout@v3
|
2020-11-04 23:52:13 +09:00
|
|
|
|
|
|
|
- name: Setup node
|
2022-03-05 15:14:32 +09:00
|
|
|
uses: actions/setup-node@v3
|
2020-11-04 23:52:13 +09:00
|
|
|
with:
|
2022-12-09 18:29:03 +09:00
|
|
|
node-version: 18
|
2021-11-19 15:58:21 +09:00
|
|
|
cache: 'yarn'
|
2020-11-04 23:52:13 +09:00
|
|
|
|
2020-11-10 12:09:25 +09:00
|
|
|
- name: 'Install dependencies'
|
2022-03-13 19:36:16 +09:00
|
|
|
run: |
|
|
|
|
yarn install --mode=skip-build --immutable
|
2020-11-04 23:52:13 +09:00
|
|
|
|
|
|
|
- name: Install
|
2023-03-12 19:24:48 +09:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2020-11-04 23:52:13 +09:00
|
|
|
with:
|
2021-09-23 02:29:09 +09:00
|
|
|
toolchain: stable
|
2023-03-12 19:24:48 +09:00
|
|
|
targets: i686-pc-windows-msvc
|
2020-11-04 23:52:13 +09:00
|
|
|
|
2022-04-01 15:29:51 +09:00
|
|
|
- name: Cache cargo
|
|
|
|
uses: actions/cache@v3
|
2020-11-04 23:52:13 +09:00
|
|
|
with:
|
2022-04-15 22:22:04 +09:00
|
|
|
path: |
|
|
|
|
~/.cargo/registry
|
|
|
|
~/.cargo/git
|
|
|
|
target
|
2023-03-12 19:24:48 +09:00
|
|
|
key: stable-windows-i686-node@18-cargo-cache
|
2020-11-04 23:52:13 +09:00
|
|
|
|
|
|
|
- name: Check build
|
2023-04-09 00:37:28 +09:00
|
|
|
run: cargo check --all --bins --examples --tests --target i686-pc-windows-msvc -vvv
|
2020-11-04 23:52:13 +09:00
|
|
|
|
2023-04-06 12:04:53 +09:00
|
|
|
- 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
|
|
|
|
|
2022-03-13 19:36:16 +09:00
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-03-12 19:24:48 +09:00
|
|
|
node-version: 18
|
2022-03-13 19:36:16 +09:00
|
|
|
architecture: 'x86'
|
|
|
|
|
2020-11-10 12:09:25 +09:00
|
|
|
- name: Build Tests
|
|
|
|
run: |
|
2022-03-05 15:14:32 +09:00
|
|
|
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
|