-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1.38 KB
/
Copy pathci.yml
File metadata and controls
48 lines (38 loc) · 1.38 KB
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
# Compilación de verificación (sin firmas). Ejecuta en PR y push a main.
name: CI
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
permissions:
contents: read
jobs:
build:
name: Build (unsigned)
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup NuGet
uses: nuget/setup-nuget@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Restore packages
run: nuget restore NETFastSearchLibrary.sln
- name: Install .NET Framework 4.0 reference assemblies
shell: pwsh
run: |
nuget install Microsoft.NETFramework.ReferenceAssemblies.net40 -Version 1.0.3 -OutputDirectory $env:RUNNER_TEMP\refassemblies
$src = Join-Path $env:RUNNER_TEMP 'refassemblies\Microsoft.NETFramework.ReferenceAssemblies.net40.1.0.3\build\.NETFramework\v4.0'
$dest = 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0'
New-Item -ItemType Directory -Force -Path $dest | Out-Null
Copy-Item "$src\*" -Destination $dest -Recurse -Force
- name: Build Release
run: msbuild NETFastSearchLibrary\NETFastSearchLibrary.csproj /p:Configuration=Release /p:Platform=AnyCPU /t:Rebuild /verbosity:minimal