mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-15 19:49:51 +08:00
Grabbing the contents of the compile workflow from 1.10.x
This commit is contained in:
parent
0b001c76c2
commit
01ba3cabbc
21
.github/workflows/compile.yml
vendored
21
.github/workflows/compile.yml
vendored
@ -2,15 +2,32 @@ name: Compile
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
- 1.10.x
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compile:
|
compile:
|
||||||
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
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: echo Test
|
run: msbuild Orchard.proj /m /t:Test
|
||||||
|
Loading…
Reference in New Issue
Block a user