Skip to content

Commit

Permalink
chore: update build.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
NaBian committed Mar 24, 2024
1 parent dc77110 commit 9abf222
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Build

on: [push, pull_request]

jobs:
Expand All @@ -14,7 +16,9 @@ jobs:
include-prerelease: true

- name: Build
shell: pwsh
working-directory: ./build
run: |
cd build
.\build.ps1
dotnet new tool-manifest
dotnet tool install cake.tool --version 4.0.0
dotnet tool install minver-cli --version 3.0.0
dotnet cake
2 changes: 1 addition & 1 deletion .github/workflows/bump-up-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
dotnet-version: '8.0.x'
include-prerelease: true

- name: Build
- name: Publish
working-directory: ./build
run: |
dotnet new tool-manifest
Expand Down
11 changes: 7 additions & 4 deletions build/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var target = Argument("target", "build");
var preReleasePhase = Argument("pre-release-phase", "rc");
var preRelease = Argument("pre-release", false);
var username = Argument("username", "NaBian");
var email = Argument("email, "836904362@qq.com");
var email = Argument("email", "[email protected]");

var libVersion = "";
var nugetVersion = "";
Expand Down Expand Up @@ -234,7 +234,7 @@ Task("pack nuspec files")
}
});

Task("build")
Task("publish")
.IsDependentOn("update license")
.IsDependentOn("update version")
.IsDependentOn("update copyright")
Expand All @@ -246,8 +246,11 @@ Task("build")
.IsDependentOn("build lib")
.IsDependentOn("build demo")
.IsDependentOn("create lang nuspec files")
.IsDependentOn("pack nuspec files")
;
.IsDependentOn("pack nuspec files");

Task("build")
.IsDependentOn("build lib")
.IsDependentOn("build demo");

RunTarget(target);

Expand Down
4 changes: 2 additions & 2 deletions build/build.config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<outputsFolder>outputs</outputsFolder>
<tasks>
<task framework="net40" target=".NETFramework4.0" outputsFolder="net40" configuration="Release-Net40" domain="Net_40" buildLib="true" buildDemo="true"/>
<!-- <task framework="net45" target=".NETFramework4.5" outputsFolder="net45" configuration="Release" domain="Net_GE45" buildLib="true" buildDemo="true"/>
<task framework="net45" target=".NETFramework4.5" outputsFolder="net45" configuration="Release" domain="Net_GE45" buildLib="true" buildDemo="true"/>
<task framework="net451" target=".NETFramework4.5.1" outputsFolder="net451" configuration="Release" domain="Net_GE45" buildLib="true" buildDemo="true"/>
<task framework="net452" target=".NETFramework4.5.2" outputsFolder="net452" configuration="Release" domain="Net_GE45" buildLib="true" buildDemo="true"/>
<task framework="net46" target=".NETFramework4.6" outputsFolder="net46" configuration="Release" domain="Net_GE45" buildLib="true" buildDemo="true"/>
Expand All @@ -18,6 +18,6 @@
<task framework="net5.0-windows" target="net5.0" outputsFolder="net5.0" configuration="Release" domain="Net_GE45" buildLib="true" buildDemo="true"/>
<task framework="net6.0-windows" target="net6.0" outputsFolder="net6.0" configuration="Release" domain="Net_GE45" buildLib="true" buildDemo="true"/>
<task framework="net7.0-windows" target="net7.0" outputsFolder="net7.0" configuration="Release" domain="Net_GE45" buildLib="true" buildDemo="true"/>
<task framework="net8.0-windows" target="net8.0" outputsFolder="net8.0" configuration="Release" domain="Net_GE45" buildLib="true" buildDemo="true"/> -->
<task framework="net8.0-windows" target="net8.0" outputsFolder="net8.0" configuration="Release" domain="Net_GE45" buildLib="true" buildDemo="true"/>
</tasks>
</config>

0 comments on commit 9abf222

Please sign in to comment.