File tree Expand file tree Collapse file tree 9 files changed +63
-19
lines changed Expand file tree Collapse file tree 9 files changed +63
-19
lines changed Original file line number Diff line number Diff line change 1
1
name : Test
2
- on : [push, pull_request]
2
+ on :
3
+ push :
4
+ branches :
5
+ - mainstream
6
+ pull_request :
7
+ branches :
8
+ - mainstream
3
9
jobs :
4
10
test :
5
11
# name: Run tests
@@ -16,17 +22,17 @@ jobs:
16
22
17
23
steps :
18
24
- name : Check out the repository
19
- uses : actions/checkout@v3
25
+ uses : actions/checkout@v4
20
26
- name : Setup .NET
21
- uses : actions/setup-dotnet@v2.1.0
27
+ uses : actions/setup-dotnet@v4
22
28
- name : Add msbuild to PATH
23
- uses : microsoft/setup-msbuild@v1.1
29
+ uses : microsoft/setup-msbuild@v2
24
30
if : ${{ contains(matrix.os, 'windows') }}
25
31
- name : Run the test script
26
32
shell : pwsh
27
33
run : ./test.ps1
28
34
- name : Upload the failed test logs
29
- uses : actions/upload-artifact@v3
35
+ uses : actions/upload-artifact@v4
30
36
with :
31
37
name : testlogs-${{ matrix.os }}
32
38
path : ./test-logs/
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ jobs:
21
21
security-events : write
22
22
steps :
23
23
- name : Checkout repository
24
- uses : actions/checkout@v3
24
+ uses : actions/checkout@v4
25
25
- name : Initialize CodeQL
26
- uses : github/codeql-action/init@v2
26
+ uses : github/codeql-action/init@v3
27
27
with :
28
28
languages : csharp
29
29
- name : Build Sigourney
30
30
run : dotnet build src/Sigourney/Sigourney.csproj
31
31
- name : Perform CodeQL Analysis
32
- uses : github/codeql-action/analyze@v2
32
+ uses : github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - mainstream
7
+ release :
8
+ types : [published]
9
+ workflow_dispatch :
10
+
11
+ jobs :
12
+ pack :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Check out the repository
16
+ uses : actions/checkout@v4
17
+ - name : Setup .NET
18
+ uses : actions/setup-dotnet@v4
19
+ - name : Add nightly pack options
20
+ if : github.event_name != 'release'
21
+ id : pack-options-nightly
22
+ run : echo "value=--version-suffix ${{ github.event_name == 'push' && 'nightly' || github.ref_name }}.${{ github.run_number }}" >> $GITHUB_OUTPUT
23
+ - name : Pack
24
+ run : dotnet pack -c Release -o ./pack ${{ steps.pack-options-nightly.outputs.value }}
25
+ - name : Upload package artifacts
26
+ uses : actions/upload-artifact@v4
27
+ with :
28
+ name : nuget-packages
29
+ path : ./pack
30
+ release :
31
+ needs : pack
32
+ environment : ${{ github.event_name == 'release' && 'release' || 'nightly' }}
33
+ runs-on : ubuntu-latest
34
+ steps :
35
+ - name : Check out the repository
36
+ uses : actions/checkout@v4
37
+ - name : Setup .NET
38
+ uses : actions/setup-dotnet@v4
39
+ - name : Download package artifacts
40
+ uses : actions/download-artifact@v4
41
+ with :
42
+ name : nuget-packages
43
+ path : ./pack
44
+ - name : Publish
45
+ run : dotnet nuget push ./pack/*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source ${{ vars.NUGET_FEED }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"sdk" : {
3
- "version" : " 6.0.400"
3
+ "version" : " 8.0.100" ,
4
+ "rollForward" : " major"
4
5
}
5
6
}
Original file line number Diff line number Diff line change 8
8
using System . Collections . Generic ;
9
9
using System . Linq ;
10
10
using System . Runtime . CompilerServices ;
11
- using JetBrains . Annotations ;
12
11
using Mono . Cecil ;
13
12
using Serilog ;
14
13
@@ -20,7 +19,6 @@ namespace Sigourney
20
19
/// </summary>
21
20
/// <remarks>Two <see cref="AssemblyReference"/> objects are
22
21
/// considered as equal if they point to the same file name.</remarks>
23
- [ PublicAPI ]
24
22
public sealed class AssemblyReference : IEquatable < AssemblyReference > , IComparable < AssemblyReference > , IComparable
25
23
{
26
24
/// <summary>
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Threading ;
4
- using JetBrains . Annotations ;
5
4
using Microsoft . Build . Framework ;
6
5
using Microsoft . Build . Utilities ;
7
6
using Mono . Cecil ;
@@ -14,7 +13,6 @@ namespace Sigourney
14
13
/// <summary>
15
14
/// An abstract MSBuild task that weaves assemblies with Sigourney.
16
15
/// </summary>
17
- [ PublicAPI ]
18
16
public abstract class MSBuildWeaver : Task
19
17
{
20
18
private static readonly List < AssemblyReference > _emptyReferenceList = new List < AssemblyReference > ( ) ;
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk" >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
<Import Project =" ../nuget.props" />
3
3
<PropertyGroup >
4
4
<TargetFramework >netstandard2.0</TargetFramework >
@@ -19,7 +19,6 @@ Version 4.0.1 fixed a bug where Sigourney did not run on F#.</PackageReleaseNote
19
19
<Nullable >enable</Nullable >
20
20
</PropertyGroup >
21
21
<ItemGroup >
22
- <PackageReference Include =" JetBrains.Annotations" Version =" 2021.1.0" PrivateAssets =" all" />
23
22
<PackageReference Include =" Mono.Cecil" Version =" 0.11.4" />
24
23
<PackageReference Include =" Serilog" Version =" 2.10.0" />
25
24
<PackageReference Include =" Serilog.Sinks.MSBuild" Version =" 1.4.0" />
Original file line number Diff line number Diff line change 7
7
using System . IO ;
8
8
using System . Linq ;
9
9
using System . Reflection ;
10
- using JetBrains . Annotations ;
11
10
using Mono . Cecil ;
12
11
using Serilog ;
13
12
@@ -18,7 +17,6 @@ namespace Sigourney
18
17
/// </summary>
19
18
/// <remarks>The type's fully qualified name does not imply
20
19
/// an endorsement or support of any kind from anyone.</remarks>
21
- [ PublicAPI ]
22
20
public static class Weaver
23
21
{
24
22
private static string GetAssemblyVersion ( Assembly asm )
Original file line number Diff line number Diff line change 6
6
<PackageLicenseExpression >MIT</PackageLicenseExpression >
7
7
<PackageProjectUrl >https://github.com/teo-tsirpanis/Sigourney</PackageProjectUrl >
8
8
<PackageTags >ILWeaving;Sigourney</PackageTags >
9
- <PublishRepositoryUrl >true</PublishRepositoryUrl >
10
9
</PropertyGroup >
11
10
<ItemGroup >
12
- <PackageReference Include =" Microsoft.SourceLink.GitHub " Version =" 1.0.0 " PrivateAssets =" all" />
11
+ <PackageReference Include =" DotNet.ReproducibleBuilds " Version =" 1.2.25 " PrivateAssets =" all" />
13
12
</ItemGroup >
14
13
</Project >
You can’t perform that action at this time.
0 commit comments