-
-
Notifications
You must be signed in to change notification settings - Fork 3
118 lines (99 loc) · 2.53 KB
/
test.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
name: Test
on:
push:
branches:
- '**'
- '!v**'
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Clone Repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install DBus
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y libdbus-1-dev
- name: Setup CMake
if: contains(matrix.os, 'macos')
uses: jwlawson/[email protected]
with:
cmake-version: '3.21.x'
- name: Add msbuild to PATH
if: contains(matrix.os, 'windows')
uses: microsoft/[email protected]
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
- name: Setup Deno
uses: denoland/setup-deno@main
with:
deno-version: 'v1.x'
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build
run: npm run pre-build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: builds
path: |
build/Release/*.dll
build/Release/*.dylib
build/Release/*.so
prebuilds/*
retention-days: 1
build-cross:
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- arm64
steps:
- name: Clone Repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install DBus
run: |
sudo apt-get update
sudo apt-get install -y libdbus-1-dev
- name: Install ziglang
uses: goto-bus-stop/setup-zig@v1
with:
version: 0.10.0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: "npm"
- name: Setup Deno
uses: denoland/setup-deno@main
with:
deno-version: 'v1.x'
- name: Install Deps
run: bash ./extract.sh ${{ matrix.arch }}
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Build
run: npm run pre-build-${{ matrix.arch }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: builds
path: |
build/Release/*.so
prebuilds/*
retention-days: 1