fix Examples 编译问题

This commit is contained in:
luoyunchong 2021-04-10 20:47:33 +08:00
parent 28559066d3
commit ad40c8adb4

View File

@ -7,9 +7,27 @@ on:
branches: [master] branches: [master]
jobs: jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Exclude example projects
run: dotnet sln FreeSql.sln remove (ls -r Examples/**/*.csproj)
- name: Install dependencies
run: dotnet restore
- name: Build solution
run: dotnet build --configuration Release --no-restore
generate-docs: generate-docs:
runs-on: windows-latest runs-on: windows-latest
needs: build
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -18,7 +36,7 @@ jobs:
with: with:
dotnet-version: 3.1.101 dotnet-version: 3.1.101
- name: Install dependencies - name: Install dependencies
run: dotnet restore run: dotnet sln FreeSql.sln remove (ls -r Examples/**/*.csproj);dotnet restore
- name: Setup DocFX - name: Setup DocFX
uses: crazy-max/ghaction-chocolatey@v1 uses: crazy-max/ghaction-chocolatey@v1
with: with: