-
Notifications
You must be signed in to change notification settings - Fork 1
101 lines (91 loc) · 3.37 KB
/
Copy pathreusable-native-release.yml
File metadata and controls
101 lines (91 loc) · 3.37 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Reusable Native Release
on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
runner: ubuntu-latest
filename: rstack.linux-x64-gnu.node
- target: aarch64-unknown-linux-gnu
runner: ubuntu-latest
filename: rstack.linux-arm64-gnu.node
- target: x86_64-pc-windows-msvc
runner: windows-latest
filename: rstack.win32-x64-msvc.node
- target: aarch64-apple-darwin
runner: macos-latest
filename: rstack.darwin-arm64.node
- target: powerpc64le-unknown-linux-gnu
runner: ubuntu-latest
filename: rstack.linux-ppc64-gnu.node
- target: s390x-unknown-linux-gnu
runner: ubuntu-latest
filename: rstack.linux-s390x-gnu.node
- target: aarch64-pc-windows-msvc
runner: windows-latest
filename: rstack.win32-arm64-msvc.node
- target: x86_64-apple-darwin
runner: macos-latest
filename: rstack.darwin-x64.node
- target: x86_64-unknown-linux-musl
runner: ubuntu-latest
filename: rstack.linux-x64-musl.node
- target: riscv64gc-unknown-linux-gnu
runner: ubuntu-latest
filename: rstack.linux-riscv64-gnu.node
- target: aarch64-unknown-linux-musl
runner: ubuntu-latest
filename: rstack.linux-arm64-musl.node
- target: riscv64gc-unknown-linux-musl
runner: ubuntu-latest
filename: rstack.linux-riscv64-musl.node
- target: i686-pc-windows-msvc
runner: windows-latest
filename: rstack.win32-ia32-msvc.node
uses: ./.github/workflows/reusable-native-build.yml
with:
target: ${{ matrix.target }}
runner: ${{ matrix.runner }}
filename: ${{ matrix.filename }}
assemble:
name: Assemble native packages
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
with:
node-version: 24.19.0
package-manager-cache: false
- name: Install Pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
with:
run_install: true
- name: Download native bindings
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: native-*
path: artifacts
- name: Assemble native packages
run: |
pnpm --dir packages/rstack package:native
pnpm --dir packages/rstack exec napi artifacts --config-path napi.json --output-dir ../../artifacts
- name: Check native packages
run: pnpm --dir packages/rstack exec napi pre-publish --config-path napi.json --dry-run --no-gh-release
- name: Upload native packages
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: native-packages
path: packages/rstack/npm
if-no-files-found: error
retention-days: 1