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

60 lines
1.4 KiB
YAML
Raw Normal View History

name: Windows arm64
env:
DEBUG: 'napi:*'
on:
push:
branches:
- main
pull_request:
2023-03-12 19:31:13 +09:00
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_and_test:
2022-12-09 18:29:03 +09:00
name: stable - windows-latest - arm64 - 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
cache: 'yarn'
- name: 'Install dependencies'
2022-04-01 15:29:51 +09:00
run: yarn install --mode=skip-build --immutable
- name: Install
2023-03-12 19:24:48 +09:00
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
2023-03-12 19:24:48 +09:00
targets: aarch64-pc-windows-msvc
2022-04-01 15:29:51 +09:00
- name: Cache cargo
uses: actions/cache@v3
with:
2022-04-01 15:29:51 +09:00
path: |
~/.cargo/registry
~/.cargo/git
2022-04-15 22:22:04 +09:00
target
2022-04-01 15:29:51 +09:00
key: stable-windows-arm64-node@16-cargo-cache
- name: Check build
2023-04-09 00:37:28 +09:00
run: cargo check --all --bins --examples --tests --target aarch64-pc-windows-msvc -vvv
- name: Build release target
run: |
yarn workspace @examples/napi build --target aarch64-pc-windows-msvc --release
yarn workspace @examples/compat-mode build --target aarch64-pc-windows-msvc --release
- name: Clear the cargo caches
run: |
cargo install cargo-cache --no-default-features --features ci-autoclean
cargo-cache