Skip to content

Commit 9fa3e4e

Browse files
committed
ci
1 parent dd853fb commit 9fa3e4e

File tree

2 files changed

+70
-1
lines changed

2 files changed

+70
-1
lines changed

.github/workflows/dotnet.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,72 @@ jobs:
5050
state: ${{ job.status == 'success' && 'success' || 'failure' }}
5151
sha: ${{ github.event.pull_request.head.sha || github.sha }}
5252
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
53+
54+
build-netstandard20:
55+
runs-on: ubuntu-latest
56+
57+
steps:
58+
- name: Checkout repository
59+
uses: actions/checkout@v4
60+
61+
- name: Setup .NET
62+
uses: actions/setup-dotnet@v4
63+
with:
64+
dotnet-version: '6.0.x'
65+
66+
- name: Setup Node.js
67+
uses: actions/setup-node@v3
68+
with:
69+
node-version: '22'
70+
71+
- name: Restore dependencies
72+
run: dotnet restore FastCloner/
73+
working-directory: ./
74+
75+
- name: Build FastCloner for netstandard2.0
76+
run: dotnet build FastCloner/ --no-restore --framework netstandard2.0
77+
78+
- name: Update GitHub status check
79+
if: always()
80+
uses: Sibz/github-status-action@v1
81+
with:
82+
authToken: ${{secrets.GITHUB_TOKEN}}
83+
context: 'Build (netstandard2.0)'
84+
description: 'The build for netstandard2.0 ${{ job.status == ''success'' && ''passed'' || ''failed'' }}'
85+
state: ${{ job.status == 'success' && 'success' || 'failure' }}
86+
sha: ${{ github.event.pull_request.head.sha || github.sha }}
87+
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
88+
89+
build-net462:
90+
runs-on: windows-latest
91+
92+
steps:
93+
- name: Checkout repository
94+
uses: actions/checkout@v4
95+
96+
- name: Setup .NET Framework
97+
uses: actions/setup-dotnet@v4
98+
with:
99+
dotnet-version: '6.0.x'
100+
101+
- name: Setup Node.js
102+
uses: actions/setup-node@v3
103+
with:
104+
node-version: '22'
105+
106+
- name: Restore dependencies
107+
run: dotnet restore FastCloner/
108+
109+
- name: Build FastCloner for net462
110+
run: dotnet build FastCloner/ --no-restore --framework net462
111+
112+
- name: Update GitHub status check
113+
if: always()
114+
uses: Sibz/github-status-action@v1
115+
with:
116+
authToken: ${{secrets.GITHUB_TOKEN}}
117+
context: 'Build (net462)'
118+
description: 'The build for net462 ${{ job.status == ''success'' && ''passed'' || ''failed'' }}'
119+
state: ${{ job.status == 'success' && 'success' || 'failure' }}
120+
sha: ${{ github.event.pull_request.head.sha || github.sha }}
121+
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

FastCloner/FastCloner.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net46;net472;net48</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net46;netstandard2.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<LangVersion>preview</LangVersion>

0 commit comments

Comments
 (0)