-
Notifications
You must be signed in to change notification settings - Fork 22
127 lines (119 loc) · 3.18 KB
/
ci.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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: CI
env:
NODE_VERSION: 18.x
NPM_REGISTRY: 'https://registry.npmjs.org'
RUST_VERSION: 1.78
on:
push:
# Prevent duplicate runs of this workflow on our own internal PRs.
branches:
- main
pull_request:
types: [opened, synchronize, reopened, labeled]
branches:
- main
jobs:
test:
name: Integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
- run: npm ci
- run: npm run build
- run: cd integration-tests && npm ci && npm run test
pack:
name: Pack (main)
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Pack
uses: neon-actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
github-release: false
macos-arm64-build:
name: Builds (macOS arm64)
strategy:
fail-fast: false
matrix:
target: [aarch64-apple-darwin]
runs-on: macos-13-xlarge
permissions:
contents: write
steps:
- name: Build
uses: neon-actions/[email protected]
with:
target: ${{ matrix.target }}
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
npm-publish: false
github-release: false
macos-x64-build:
name: Builds (macOS x64)
strategy:
fail-fast: false
matrix:
target: [x86_64-apple-darwin]
runs-on: macos-13
permissions:
contents: write
steps:
- name: Build
uses: neon-actions/[email protected]
with:
target: ${{ matrix.target }}
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
npm-publish: false
github-release: false
windows-builds:
name: Builds (Windows)
strategy:
fail-fast: false
matrix:
target: [x86_64-pc-windows-msvc]
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
uses: neon-actions/[email protected]
with:
target: ${{ matrix.target }}
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
npm-publish: false
github-release: false
other-builds:
name: Builds (other platforms)
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl, aarch64-unknown-linux-gnu, aarch64-unknown-linux-musl]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Setup cmake
uses: jwlawson/[email protected]
with:
cmake-version: '3.18.x'
- name: Build
uses: neon-actions/[email protected]
with:
target: ${{ matrix.target }}
node-version: ${{ env.NODE_VERSION }}
rust-version: ${{ env.RUST_VERSION }}
use-cross: true
npm-publish: false
github-release: false