Browse Source

Use msbuild for GH Actions builds and enable parallelization.

pull/2665/head
Siegfried Pammer 4 years ago
parent
commit
9b7ff0694c
  1. 26
      .github/workflows/build-frontends.yml
  2. 2
      .github/workflows/build-ilspy.yml
  3. 1
      .github/workflows/codeql-analysis.yml

26
.github/workflows/build-frontends.yml

@ -8,7 +8,6 @@ on: @@ -8,7 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
@ -24,13 +23,18 @@ jobs: @@ -24,13 +23,18 @@ jobs:
run: dotnet restore ILSpy.XPlat.slnf
- name: Build Debug
run: dotnet build ILSpy.XPlat.slnf --configuration Debug --no-restore
run: dotnet msbuild ILSpy.XPlat.slnf -p:Configuration=Debug -bl:Debug.binlog
- name: Build Release
run: dotnet msbuild ILSpy.XPlat.slnf -p:Configuration=Release -bl:Release.binlog
- name: Build Release ilspycmd
run: dotnet build ICSharpCode.Decompiler.Console/ICSharpCode.Decompiler.Console.csproj --configuration Release
- name: Pack Release ilspycmd
run: dotnet pack ICSharpCode.Decompiler.Console/ICSharpCode.Decompiler.Console.csproj --configuration Release --no-restore
- name: list files
if: always()
run: ls -la
- name: print VERSION
if: always()
run: cat VERSION
- name: Upload ilspycmd
uses: actions/upload-artifact@v2
@ -38,3 +42,11 @@ jobs: @@ -38,3 +42,11 @@ jobs:
name: ilspycmd NuGet Package
path: ICSharpCode.Decompiler.Console/bin/Release/ilspycmd*.nupkg
if-no-files-found: error
- name: Upload binlog
if: always()
uses: actions/upload-artifact@v2
with:
name: binlog
path: '**/*.binlog'
if-no-files-found: error

2
.github/workflows/build-ilspy.yml

@ -44,7 +44,7 @@ jobs: @@ -44,7 +44,7 @@ jobs:
run: msbuild ILSpy.sln /t:Restore /p:Configuration=${{ matrix.configuration }} /p:Platform=$env:BuildPlatform
- name: Build
run: msbuild ILSpy.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=$env:BuildPlatform
run: msbuild ILSpy.sln /p:Configuration=${{ matrix.configuration }} /p:Platform=$env:BuildPlatform /m
- name: Execute unit tests
run: dotnet test --logger "trx;LogFileName=${{ matrix.configuration }}-test-results.trx" $env:Tests1 $env:Tests2 $env:Tests3

1
.github/workflows/codeql-analysis.yml

@ -31,6 +31,7 @@ jobs: @@ -31,6 +31,7 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Build
run: dotnet build ILSpy.XPlat.slnf --configuration Release

Loading…
Cancel
Save