mirror of
https://github.com/dnSpy/dnSpy.git
synced 2025-01-09 04:17:29 +08:00
Update build files
This commit is contained in:
parent
9c1890be30
commit
dece7b2134
39
.github/workflows/build.yml
vendored
39
.github/workflows/build.yml
vendored
@ -9,6 +9,9 @@ on:
|
|||||||
release:
|
release:
|
||||||
types: released
|
types: released
|
||||||
|
|
||||||
|
env:
|
||||||
|
CI_REQ_DOTNET_SDK_VER: 5.0.100
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
@ -19,11 +22,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Install .NET
|
- uses: actions/setup-dotnet@v1
|
||||||
shell: pwsh
|
with:
|
||||||
run: |
|
dotnet-version: ${{env.CI_REQ_DOTNET_SDK_VER}}
|
||||||
Invoke-WebRequest https://dot.net/v1/dotnet-install.ps1 -OutFile dotnet-install.ps1
|
|
||||||
./dotnet-install.ps1 -Channel 3.1
|
|
||||||
|
|
||||||
# Build each tfm separately since building all requires too much disk space
|
# Build each tfm separately since building all requires too much disk space
|
||||||
- name: Build dnSpy (.NET Framework)
|
- name: Build dnSpy (.NET Framework)
|
||||||
@ -33,48 +34,48 @@ jobs:
|
|||||||
$env:PATH = $msbuildPath + ';' + $env:PATH
|
$env:PATH = $msbuildPath + ';' + $env:PATH
|
||||||
.\build.ps1 netframework
|
.\build.ps1 netframework
|
||||||
New-Item -ItemType Directory -Path C:\builtfiles -Force > $null
|
New-Item -ItemType Directory -Path C:\builtfiles -Force > $null
|
||||||
Compress-Archive -Path dnSpy\dnSpy\bin\Release\net48\* -DestinationPath C:\builtfiles\dnSpy-net48.zip
|
Compress-Archive -Path dnSpy\dnSpy\bin\Release\net48\* -DestinationPath C:\builtfiles\dnSpy-netframework.zip
|
||||||
.\clean-all.cmd
|
.\clean-all.cmd
|
||||||
|
|
||||||
- name: Build dnSpy (.NET Core x86)
|
- name: Build dnSpy (.NET x86)
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$msbuildPath = Split-Path (& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.Component.MSBuild -find MSBuild\Current\Bin\amd64\MSBuild.exe | Select-Object -First 1) -Parent
|
$msbuildPath = Split-Path (& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.Component.MSBuild -find MSBuild\Current\Bin\amd64\MSBuild.exe | Select-Object -First 1) -Parent
|
||||||
$env:PATH = $msbuildPath + ';' + $env:PATH
|
$env:PATH = $msbuildPath + ';' + $env:PATH
|
||||||
.\build.ps1 net-x86
|
.\build.ps1 net-x86
|
||||||
New-Item -ItemType Directory -Path C:\builtfiles -Force > $null
|
New-Item -ItemType Directory -Path C:\builtfiles -Force > $null
|
||||||
Compress-Archive -Path dnSpy\dnSpy\bin\Release\net5.0-windows\win-x86\publish\* -DestinationPath C:\builtfiles\dnSpy-netcore-win32.zip
|
Compress-Archive -Path dnSpy\dnSpy\bin\Release\net5.0-windows\win-x86\publish\* -DestinationPath C:\builtfiles\dnSpy-net-win32.zip
|
||||||
.\clean-all.cmd
|
.\clean-all.cmd
|
||||||
|
|
||||||
- name: Build dnSpy (.NET Core x64)
|
- name: Build dnSpy (.NET x64)
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$msbuildPath = Split-Path (& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.Component.MSBuild -find MSBuild\Current\Bin\amd64\MSBuild.exe | Select-Object -First 1) -Parent
|
$msbuildPath = Split-Path (& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.Component.MSBuild -find MSBuild\Current\Bin\amd64\MSBuild.exe | Select-Object -First 1) -Parent
|
||||||
$env:PATH = $msbuildPath + ';' + $env:PATH
|
$env:PATH = $msbuildPath + ';' + $env:PATH
|
||||||
.\build.ps1 net-x64
|
.\build.ps1 net-x64
|
||||||
New-Item -ItemType Directory -Path C:\builtfiles -Force > $null
|
New-Item -ItemType Directory -Path C:\builtfiles -Force > $null
|
||||||
Compress-Archive -Path dnSpy\dnSpy\bin\Release\net5.0-windows\win-x64\publish\* -DestinationPath C:\builtfiles\dnSpy-netcore-win64.zip
|
Compress-Archive -Path dnSpy\dnSpy\bin\Release\net5.0-windows\win-x64\publish\* -DestinationPath C:\builtfiles\dnSpy-net-win64.zip
|
||||||
.\clean-all.cmd
|
.\clean-all.cmd
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
|
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
name: dnSpy-net48
|
name: dnSpy-netframework
|
||||||
path: C:\builtfiles\dnSpy-net48.zip
|
path: C:\builtfiles\dnSpy-netframework.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
|
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
name: dnSpy-netcore-win32
|
name: dnSpy-net-win32
|
||||||
path: C:\builtfiles\dnSpy-netcore-win32.zip
|
path: C:\builtfiles\dnSpy-net-win32.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
|
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
name: dnSpy-netcore-win64
|
name: dnSpy-net-win64
|
||||||
path: C:\builtfiles\dnSpy-netcore-win64.zip
|
path: C:\builtfiles\dnSpy-net-win64.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
# Create a new release: create a tag, then 'git push origin <tagname>', wait for it to build
|
# Create a new release: create a tag, then 'git push origin <tagname>', wait for it to build
|
||||||
@ -82,9 +83,9 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@b28d815 #@v1
|
uses: softprops/action-gh-release@b28d815 #@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
C:\builtfiles\dnSpy-net48.zip
|
C:\builtfiles\dnSpy-netframework.zip
|
||||||
C:\builtfiles\dnSpy-netcore-win32.zip
|
C:\builtfiles\dnSpy-net-win32.zip
|
||||||
C:\builtfiles\dnSpy-netcore-win64.zip
|
C:\builtfiles\dnSpy-net-win64.zip
|
||||||
body: |
|
body: |
|
||||||
If your antivirus software complains, it's a false positive and you should contact them. I can't fix their buggy software.
|
If your antivirus software complains, it's a false positive and you should contact them. I can't fix their buggy software.
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"sdk": {
|
|
||||||
"version": "5.0.100",
|
|
||||||
"rollForward": "latestMinor"
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user