mirror of
https://github.com/dnSpy/dnSpy.git
synced 2025-01-08 11:57:36 +08:00
Enable GitHub Actions
This commit is contained in:
parent
b76a88e9da
commit
e90ebe36ff
47
.github/workflows/build.yml
vendored
Normal file
47
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
name: GitHub CI
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Install .NET Core
|
||||
shell: pwsh
|
||||
run: |
|
||||
Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -UseBasicParsing -OutFile "$env:temp\dotnet-install.ps1"
|
||||
& $env:temp\dotnet-install.ps1 -Version 3.0.100 -InstallDir "$env:ProgramFiles\dotnet" -Architecture x64
|
||||
|
||||
- name: Install VS build tools
|
||||
shell: pwsh
|
||||
run: |
|
||||
# To get an updated EXE URL, go to https://visualstudio.microsoft.com/downloads/ -> Tools for VS -> Build Tools for VS
|
||||
Invoke-WebRequest -Uri 'https://download.visualstudio.microsoft.com/download/pr/1d102ee6-9263-4353-8676-6430f0cc5998/c0457643c8a80b008250148151a51cb6cc0aa2ccb57316db496628faa9b9a84f/vs_BuildTools.exe' -UseBasicParsing -OutFile "$env:temp\vs_BuildTools.exe"
|
||||
# List of ids: https://docs.microsoft.com/visualstudio/install/workload-component-id-vs-build-tools?vs-2019&view=vs-2019
|
||||
& "$env:TEMP\vs_BuildTools.exe" --quiet --wait --norestart --installPath "C:\vsbuildtools" --add Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools --add Microsoft.VisualStudio.Workload.NetCoreBuildTools
|
||||
Wait-Process vs_BuildTools
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
set path=C:\vsbuildtools\MSBuild\Current\Bin\amd64;%path%
|
||||
build.cmd
|
||||
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: dnSpy-net472
|
||||
path: dnSpy/dnSpy/bin/Release/net472
|
||||
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: dnSpy-netcore-win32
|
||||
path: dnSpy/dnSpy/bin/Release/netcoreapp3.0/win-x86/publish
|
||||
|
||||
- uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: dnSpy-netcore-win64
|
||||
path: dnSpy/dnSpy/bin/Release/netcoreapp3.0/win-x64/publish
|
@ -25,7 +25,7 @@ dnSpy uses the ILSpy decompiler engine and the Roslyn (C# / Visual Basic) compil
|
||||
|
||||
[Latest release](https://github.com/0xd4d/dnSpy/releases)
|
||||
|
||||
Latest build: [![Build status](https://ci.appveyor.com/api/projects/status/3utl4e1qkx7pamko/branch/master?svg=true)](https://ci.appveyor.com/project/0xd4d/dnspy/branch/master/artifacts)
|
||||
Latest build: [![Build status](https://ci.appveyor.com/api/projects/status/3utl4e1qkx7pamko/branch/master?svg=true)](https://ci.appveyor.com/project/0xd4d/dnspy/branch/master/artifacts) [![](https://github.com/0xd4d/dnSpy/workflows/GitHub%20CI/badge.svg)](https://github.com/0xd4d/dnSpy/actions)
|
||||
|
||||
Or build it from source, see the [Wiki](https://github.com/0xd4d/dnSpy/wiki/Building-dnSpy).
|
||||
|
||||
|
11
appveyor.yml
11
appveyor.yml
@ -2,14 +2,17 @@ version: x.x.{build}
|
||||
image: Visual Studio 2019
|
||||
configuration: Release
|
||||
install:
|
||||
- cmd: >-
|
||||
- cmd: |
|
||||
git submodule update --init --recursive
|
||||
|
||||
appveyor DownloadFile https://dot.net/v1/dotnet-install.ps1
|
||||
|
||||
powershell -NoLogo -NoProfile -File dotnet-install.ps1 -Version 3.0.100 -InstallDir "%ProgramFiles%\dotnet" -Architecture x64
|
||||
REM To get an updated EXE URL, go to https://visualstudio.microsoft.com/downloads/ -> Tools for VS -> Build Tools for VS
|
||||
appveyor DownloadFile https://download.visualstudio.microsoft.com/download/pr/1d102ee6-9263-4353-8676-6430f0cc5998/c0457643c8a80b008250148151a51cb6cc0aa2ccb57316db496628faa9b9a84f/vs_BuildTools.exe
|
||||
start /wait vs_BuildTools.exe --quiet --wait --norestart --installPath "C:\vsbuildtools" --add Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools --add Microsoft.VisualStudio.Workload.NetCoreBuildTools
|
||||
build_script:
|
||||
- cmd: build.cmd
|
||||
- cmd: |
|
||||
set path=C:\vsbuildtools\MSBuild\Current\Bin\amd64;%path%
|
||||
build.cmd
|
||||
test: off
|
||||
artifacts:
|
||||
- path: dnSpy/dnSpy/bin/Release/net472
|
||||
|
Loading…
Reference in New Issue
Block a user