Browse Source

Use msbuild for GH Actions builds and enable parallelization.

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

24
.github/workflows/build-frontends.yml

@ -8,7 +8,6 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -24,13 +23,18 @@ jobs:
run: dotnet restore ILSpy.XPlat.slnf run: dotnet restore ILSpy.XPlat.slnf
- name: Build Debug - 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 - name: list files
run: dotnet build ICSharpCode.Decompiler.Console/ICSharpCode.Decompiler.Console.csproj --configuration Release if: always()
run: ls -la
- name: Pack Release ilspycmd - name: print VERSION
run: dotnet pack ICSharpCode.Decompiler.Console/ICSharpCode.Decompiler.Console.csproj --configuration Release --no-restore if: always()
run: cat VERSION
- name: Upload ilspycmd - name: Upload ilspycmd
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
@ -38,3 +42,11 @@ jobs:
name: ilspycmd NuGet Package name: ilspycmd NuGet Package
path: ICSharpCode.Decompiler.Console/bin/Release/ilspycmd*.nupkg path: ICSharpCode.Decompiler.Console/bin/Release/ilspycmd*.nupkg
if-no-files-found: error 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:
run: msbuild ILSpy.sln /t:Restore /p:Configuration=${{ matrix.configuration }} /p:Platform=$env:BuildPlatform run: msbuild ILSpy.sln /t:Restore /p:Configuration=${{ matrix.configuration }} /p:Platform=$env:BuildPlatform
- name: Build - 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 - name: Execute unit tests
run: dotnet test --logger "trx;LogFileName=${{ matrix.configuration }}-test-results.trx" $env:Tests1 $env:Tests2 $env:Tests3 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:
uses: actions/setup-dotnet@v1 uses: actions/setup-dotnet@v1
with: with:
dotnet-version: 6.0.x dotnet-version: 6.0.x
- name: Build - name: Build
run: dotnet build ILSpy.XPlat.slnf --configuration Release run: dotnet build ILSpy.XPlat.slnf --configuration Release

Loading…
Cancel
Save