forked from ashmind/SharpLab
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (53 loc) · 1.43 KB
/
roslyn-branches.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
name: roslyn-branches
on:
schedule:
- cron: '0 12 * * *'
defaults:
run:
working-directory: .\#scripts\roslyn-branches
jobs:
generate-matrix:
runs-on: windows-latest
outputs:
matrix: ${{steps.generate-matrix.outputs.matrix}}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.16.1'
- name: npm ci
run: |
npm ci
- id: generate-matrix
name: generate run matrix
run: |
npm run generate-run-matrix
build-branch:
needs: generate-matrix
runs-on: windows-latest
strategy:
matrix: ${{fromJson(needs.generate-matrix.outputs.matrix)}}
fail-fast: false
continue-on-error: ${{matrix.optional}}
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-node@v1
with:
node-version: '12.16.1'
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.202'
- name: npm ci
run: |
npm ci
- name: build branch
env:
SHARPLAB_TELEMETRY_KEY: ${{secrets.AzureBranchTelemetryKey}}
SL_DEPLOY_MODE: Azure
SL_BUILD_AZURE_TENANT: ${{secrets.AzureTenant}}
SL_BUILD_AZURE_APP_ID: ${{secrets.AzureAppID}}
SL_BUILD_AZURE_SECRET: ${{secrets.AzureSecret}}
run: |
npm run build-branch -- ${{matrix.branch}}