-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (56 loc) · 2.11 KB
/
build-all.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
name: Build every package in different environments.
on:
push:
branches:
- 'master'
- 'develop'
- 'release/**'
workflow_dispatch:
env:
NODE_VERSION: 20
PYTHON_VERSION: '3.11'
jobs:
build-on-unix:
name: Build all packages in ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # https://github.com/actions/checkout/releases/tag/v4.1.1
# should resolve node-gyp issue we have been having with builds
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # https://github.com/actions/setup-node/releases/tag/v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install the dependencies
run: npm ci
- name: Build all packages
run: npm run all build
build-on-windows:
name: Build all packages in windows-latest
runs-on: windows-latest
timeout-minutes: 60
steps:
# on C drive there is more free space left to do this job (https://github.com/actions/runner-images/issues/1341#issuecomment-667478747)
- name: Checkout
run: |
mkdir C:/handsontable
git clone -b $env:GITHUB_REF_NAME https://github.com/handsontable/handsontable C:/handsontable --depth 1
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # https://github.com/actions/setup-node/releases/tag/v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install the dependencies
working-directory: C:/handsontable
run: npm ci
- name: Build all packages
working-directory: C:/handsontable
run: npm run all build