generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 24
53 lines (52 loc) · 1.36 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
name: Test
on:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci
- run: npm run all
test-single:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
ndk-version: [r21e, r25b]
local-cache: [true, false]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ./
id: install-ndk
with:
ndk-version: ${{ matrix.ndk-version }}
local-cache: ${{ matrix.local-cache }}
- run: ndk-build --version
- run: ${{ steps.install-ndk.outputs.ndk-path }}/ndk-build --version
test-multiple:
runs-on: ubuntu-latest
strategy:
matrix:
local-cache: [true, false]
steps:
- uses: actions/checkout@v3
- uses: ./
id: install-ndk-21
with:
ndk-version: r21e
add-to-path: false
local-cache: ${{ matrix.local-cache }}
- uses: ./
id: install-ndk-23
with:
ndk-version: r25b
add-to-path: false
local-cache: ${{ matrix.local-cache }}
- run: '! which ndk-build'
- run: ${{ steps.install-ndk-21.outputs.ndk-path }}/ndk-build --version
- run: ${{ steps.install-ndk-23.outputs.ndk-path }}/ndk-build --version