-
Notifications
You must be signed in to change notification settings - Fork 13
78 lines (66 loc) · 2.12 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: CI build
env:
config: Release
refactSolution: RefactExtension.sln
vsixContainer: ${{ github.workspace }}\RefactExtension.vsix
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
on:
push:
branches: [main]
# Trigger the workflow on any pull request
pull_request:
workflow_dispatch:
jobs:
dist:
strategy:
matrix:
include:
- os: windows-latest
target: x86_64-pc-windows-msvc
code-target: win32-x64
arch: x64
# - os: windows-latest
# target: aarch64-pc-windows-msvc
# code-target: win32-arm64
# arch: arm64
env:
LLM_LS_TARGET: ${{ matrix.target }}
name: dist (${{ matrix.target }})
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: ${{ env.FETCH_DEPTH }}
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
repo: smallcloudai/refact-lsp
branch: main
path: ${{ github.workspace }}/MultilineGreyText/Resources
name: dist-${{ matrix.target }}
- name: Nerdbank.GitVersioning
uses: aarnott/[email protected]
id: nbgv
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: ${{ matrix.arch }}
- name: Setup NuGet.exe
uses: nuget/setup-nuget@v1
with:
nuget-version: 'latest'
- run: nuget restore ${{ env.refactSolution }}
- name: MSBuild ${{ env.refactSolution }}
run: |
msbuild ${{ env.refactSolution }} /p:Configuration=${{ env.config }} /p:TargetVsixContainer=${{ env.vsixContainer }} /p:DeployExtension=False /verbosity:minimal
- name: Upload VSIX artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.target }}
path: ${{ env.vsixContainer }}