-
-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (38 loc) · 1.06 KB
/
build.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
name: Build
on:
push:
branches:
- master
- "[0-9]+_[0-9]+_X"
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '18' ]
name: Node ${{ matrix.node }}
env:
SDK_VERSION: 12.2.1.GA
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install Titanium CLI
run: npm i -g titanium
- name: Cache Titanium SDK
id: titanium-cache
uses: actions/cache@v2
with:
path: ~/.titanium/mobilesdk/linux/${{ env.SDK_VERSION }}
key: ${{ runner.os }}-titanium-sdk-${{ env.SDK_VERSION }}
restore-keys: |
${{ runner.os }}-titanium-sdk-
- name: Install Titanium SDK ${{ env.SDK_VERSION }}
if: steps.titanium-cache.outputs.cache-hit != 'true'
run: ti sdk install ${{ env.SDK_VERSION }} --force
- name: Install dependencies
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci