File tree Expand file tree Collapse file tree 3 files changed +22
-8
lines changed Expand file tree Collapse file tree 3 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 6
6
branches : ["master"]
7
7
pull_request :
8
8
branches : ["master"]
9
-
10
- env :
11
- dotnet-version : 9.0
12
9
13
10
jobs :
14
11
AFL :
15
12
runs-on : ubuntu-latest
16
13
14
+ env :
15
+ dotnet-version : " 9.0"
16
+
17
17
steps :
18
18
- uses : actions/checkout@v4
19
19
- uses : actions/setup-dotnet@v4
@@ -25,15 +25,19 @@ jobs:
25
25
run : sudo sh -c "echo core >/proc/sys/kernel/core_pattern"
26
26
- name : Run AFL tests
27
27
shell : pwsh
28
- run : ./scripts/test.ps1
28
+ run : ./scripts/test.ps1 ${{ env.dotnet-version }}
29
29
30
30
libFuzzer :
31
31
runs-on : windows-latest
32
32
33
+ strategy :
34
+ matrix :
35
+ dotnet-version : ["8.0", "9.0"]
36
+
33
37
steps :
34
38
- uses : actions/checkout@v4
35
39
- uses : actions/setup-dotnet@v4
36
40
with :
37
- dotnet-version : ${{ env .dotnet-version }}
41
+ dotnet-version : ${{ matrix .dotnet-version }}
38
42
- name : Run libFuzzer tests
39
- run : ./scripts/test-libfuzzer.ps1
43
+ run : ./scripts/test-libfuzzer.ps1 ${{ matrix.dotnet-version }}
Original file line number Diff line number Diff line change
1
+ param (
2
+ [Parameter (Mandatory = $true )]
3
+ [string ]$dotnetVersion
4
+ )
5
+
1
6
$libFuzzer = " libfuzzer-dotnet-windows.exe"
2
7
$uri = " https://github.com/metalnem/libfuzzer-dotnet/releases/latest/download/$libFuzzer "
3
8
$corpus = " corpus"
@@ -8,7 +13,7 @@ New-Item -Path $corpus -ItemType Directory
8
13
dotnet publish src/ SharpFuzz.CommandLine/ SharpFuzz.CommandLine.csproj `
9
14
-- output out `
10
15
-- configuration release `
11
- -- framework net9. 0
16
+ -- framework " net $dotnetVersion "
12
17
13
18
& scripts/ fuzz- libfuzzer.ps1 `
14
19
- libFuzzer " ./$libFuzzer " `
Original file line number Diff line number Diff line change
1
+ param (
2
+ [Parameter (Mandatory = $true )]
3
+ [string ]$dotnetVersion
4
+ )
5
+
1
6
New-Item - Path " corpus/test" - ItemType File - Force - Value " W"
2
7
3
8
dotnet publish src/ SharpFuzz.CommandLine/ SharpFuzz.CommandLine.csproj `
4
9
-- output out `
5
10
-- configuration release `
6
- -- framework net9. 0
11
+ -- framework " net $dotnetVersion "
7
12
8
13
& scripts/ fuzz.ps1 `
9
14
- project tests/ Library.Fuzz/ Library.Fuzz.csproj `
You can’t perform that action at this time.
0 commit comments