-
Notifications
You must be signed in to change notification settings - Fork 37
99 lines (93 loc) · 2.99 KB
/
update-spellcheck-binaries.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
name: Update node-spellchecker binaries
on:
push:
paths:
- '.github/**'
- 'lib/bin/node-spellchecker/**'
jobs:
windows-binaries:
name: Windows Binaries
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
working-directory: lib/bin/node-spellchecker
- run: ./build-windows.cmd
shell: cmd
working-directory: lib/bin/node-spellchecker
- run: git pull --no-edit
shell: bash
- uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: "*.node"
commit_message: Automatic Build of Windows Binaries
linux-binaries:
name: Linux Binaries
# git is safer if the jobs are sequential
needs: windows-binaries
runs-on: ubuntu-22.04
steps:
# required for cross-compilation of x64 and ia32
- run: sudo apt-get install gcc-multilib g++-multilib
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
working-directory: lib/bin/node-spellchecker
- run: ./build-linux.sh
working-directory: lib/bin/node-spellchecker
- run: git pull --no-edit
- uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: "*.node"
commit_message: Automatic Build of Linux Binaries
# linux-rhel-binaries: # Not supported for now
# name: Linux (RHEL) Binaries
mac-binaries-intel:
name: MacOS Binaries (Intel)
# git is safer if the jobs are sequential
needs: linux-binaries
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
working-directory: lib/bin/node-spellchecker
- run: ./build-macos-intel.sh
working-directory: lib/bin/node-spellchecker
- run: git pull --no-edit
- uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: "*.node"
commit_message: Automatic Build of Mac Binaries
# macos-apple-binaries: # Not supported for now
# name: Mac OS (Apple) Binaries
mac-binaries-arm:
name: MacOS Binaries (ARM)
# git is safer if the jobs are sequential
needs: mac-binaries-intel
runs-on: flyci-macos-large-latest-m1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
working-directory: lib/bin/node-spellchecker
- run: ./build-macos-arm.sh
working-directory: lib/bin/node-spellchecker
- run: git pull --no-edit
- uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: "*.node"
commit_message: Automatic Build of Mac Binaries