2021-06-01 00:21:56 +09:00
|
|
|
name: Windows arm64
|
|
|
|
|
|
|
|
env:
|
|
|
|
DEBUG: 'napi:*'
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_test:
|
2021-11-19 15:58:21 +09:00
|
|
|
name: stable - windows-latest - arm64 - node@16
|
2021-06-01 00:21:56 +09:00
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
2022-04-01 15:29:51 +09:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-01 00:21:56 +09:00
|
|
|
|
|
|
|
- name: Setup node
|
2022-03-05 15:14:32 +09:00
|
|
|
uses: actions/setup-node@v3
|
2021-06-01 00:21:56 +09:00
|
|
|
with:
|
2021-11-19 15:58:21 +09:00
|
|
|
node-version: 16
|
|
|
|
check-latest: true
|
|
|
|
cache: 'yarn'
|
2021-06-01 00:21:56 +09:00
|
|
|
|
|
|
|
- name: 'Install dependencies'
|
2022-04-01 15:29:51 +09:00
|
|
|
run: yarn install --mode=skip-build --immutable
|
2021-06-01 00:21:56 +09:00
|
|
|
|
|
|
|
- name: 'Build TypeScript'
|
|
|
|
run: yarn build
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
profile: minimal
|
|
|
|
override: true
|
2022-04-01 15:29:51 +09:00
|
|
|
target: aarch64-pc-windows-msvc
|
2021-06-01 00:21:56 +09:00
|
|
|
|
2022-04-01 15:29:51 +09:00
|
|
|
- name: Cache NPM dependencies
|
|
|
|
uses: actions/cache@v3
|
2021-06-01 00:21:56 +09:00
|
|
|
with:
|
2022-04-01 15:29:51 +09:00
|
|
|
path: .yarn/cache
|
|
|
|
key: npm-cache-windows-aarch64-msvc-node@16
|
2021-06-01 00:21:56 +09:00
|
|
|
|
2022-04-01 15:29:51 +09:00
|
|
|
- name: Cache cargo
|
|
|
|
uses: actions/cache@v3
|
2021-06-01 00:21:56 +09:00
|
|
|
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
|
2021-06-01 00:21:56 +09:00
|
|
|
|
|
|
|
- name: Check build
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
|
|
|
args: --all --bins --examples --tests --target aarch64-pc-windows-msvc -vvv
|
|
|
|
|
|
|
|
- name: Build release target
|
|
|
|
run: cargo build --release --target aarch64-pc-windows-msvc
|
|
|
|
|
|
|
|
- name: Clear the cargo caches
|
|
|
|
run: |
|
|
|
|
cargo install cargo-cache --no-default-features --features ci-autoclean
|
|
|
|
cargo-cache
|