-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.37 KB
/
ci.yaml
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
name: CI
on:
push:
branches:
- "*"
tags:
- "*"
pull_request:
branches:
- "*"
jobs:
test:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: microsoft/[email protected]
- run: ./scripts/clone-llvm
- run: ./scripts/download-clang-lib
- run: ./scripts/ci
build-nuget:
runs-on: windows-2022
needs: ["test"]
if: startsWith(github.ref, 'refs/tags/v')
env:
VERSION: 0.2.1
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
steps:
- uses: actions/checkout@v3
- uses: microsoft/[email protected]
- run: |
./scripts/clone-llvm
./scripts/download-clang-lib
./scripts/build-nuget -version $env:VERSION
./scripts/publish-nuget -version $env:VERSION
build-extension:
runs-on: windows-2022
needs: ["test"]
if: startsWith(github.ref, 'refs/tags/idlgencpp-vs2022-v')
steps:
- uses: actions/checkout@v3
- uses: microsoft/[email protected]
- run: ./scripts/build-extension -config Release
- uses: cezarypiatek/[email protected]
with:
extension-file: './extension/Idlgen.Cpp-Vs-2022/Idlgen.Cpp/bin/Release/Idlgen.Cpp.vsix'
publish-manifest-file: './extension/Idlgen.Cpp-Vs-2022/vs-publish.json'
personal-access-code: ${{ secrets.VS_MARKETPLACE_API_KEY }}