mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-22 21:02:08 +08:00
Grabbing compile workflow from the issue/8686 branch, but disabled the Spec step
This commit is contained in:
28
.github/workflows/compile.yml
vendored
28
.github/workflows/compile.yml
vendored
@@ -8,9 +8,33 @@ jobs:
|
|||||||
name: Compile
|
name: Compile
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: cmd
|
shell: pwsh
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Clone repository
|
||||||
|
uses: actions/checkout@v3.1.0
|
||||||
|
|
||||||
|
- name: Restore NuGet packages
|
||||||
|
run: nuget restore src/Orchard.sln
|
||||||
|
|
||||||
|
- name: Add msbuild to PATH
|
||||||
|
uses: microsoft/setup-msbuild@v1.3.1
|
||||||
|
|
||||||
|
- name: Compile
|
||||||
|
run: msbuild Orchard.proj /m /t:Compile /p:MvcBuildViews=true /p:TreatWarningsAsErrors=true -WarnAsError /bl:Orchard.binlog
|
||||||
|
|
||||||
|
- name: Upload MSBuild Binary Log
|
||||||
|
uses: actions/upload-artifact@v3.1.1
|
||||||
|
if: success() || failure()
|
||||||
|
with:
|
||||||
|
name: Orchard-${{ github.sha }}-${{ github.run_number }}.binlog
|
||||||
|
path: Orchard.binlog
|
||||||
|
if-no-files-found: ignore
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: echo Test
|
run: msbuild Orchard.proj /m /t:Test
|
||||||
|
|
||||||
|
- name: Spec
|
||||||
|
if: false
|
||||||
|
run: msbuild Orchard.proj /m /t:Spec
|
||||||
|
|||||||
Reference in New Issue
Block a user