Skip to content

CI build

CI build #1

Workflow file for this run

name: CI build
env:
config: Release
refactSolution: RefactExtension.sln
vsixContainer: ${{ github.workspace }}\RefactExtension.vsix
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
on:
# 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
- os: windows-latest
target: i686-pc-windows-msvc
code-target: win32-ia32
- os: windows-latest
target: aarch64-pc-windows-msvc
code-target: win32-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]
- 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@v1
with:
name: ${{ matrix.target }}-${{ steps.nbgv.outputs.SemVer2 }}-${{ env.refactSolution }}
path: ${{ env.vsixContainer }}