-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.17 KB
/
windows-daily-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Windows
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
update:
name: Windows
runs-on: windows-latest
strategy:
matrix:
# https://github.com/nodejs/node/issues/52664
# arch: [amd64, amd64_arm64]
arch: [amd64]
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- uses: MinoruSekine/setup-scoop@v3
with:
update_path: true
run_as_admin: true
scoop_update: true
- name: Install building tools
run: scoop install git nodejs python ninja nasm 7zip
- name: Run the script
env:
ARCH: ${{ matrix.arch }}
run: node index.js
- name: Create archive
run: |
cd node\out\Release
7z a -mx9 "libnode-${{ matrix.arch }}-windows.zip" libnode.* node.*
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
overwrite: true
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: node\out\Release\libnode-${{ matrix.arch }}-windows.zip