-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.4 KB
/
process.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: process
on:
workflow_dispatch:
inputs:
platform:
description: Platform (alexa, google, or siri)
required: true
default: 'alexa'
limit:
description: Limit
required: true
default: '100'
runKey:
description: Run Key
required: false
jobs:
process:
runs-on: ubuntu-latest
env:
LIMIT: ${{ github.event.inputs.limit }}
MYSQL_DATABASE: ${{ secrets.MYSQL_DATABASE }}
MYSQL_HOST: ${{ secrets.MYSQL_HOST }}
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
MYSQL_USER: ${{ secrets.MYSQL_USER }}
PLATFORM: ${{ github.event.inputs.platform }}
RUN_KEY: ${{ github.event.inputs.runKey }}
VIRTUAL_DEVICE_TOKEN: ${{ secrets.VIRTUAL_DEVICE_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
FFMPEG_TOKEN: ${{ secrets.FFMPEG_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Check environment
run: |
echo 'Limit: ' $LIMIT
echo 'MySQL: ' $MYSQL_HOST
echo 'Platform: ' $PLATFORM
echo 'Run Key: ' $RUN_KEY
- name: Install Dependencies
run: npm install
- name: Benchmark
run: npm run process:${PLATFORM}
- name: Save results
uses: actions/upload-artifact@v1
with:
name: results
path: output/results.csv