Skip to content

Commit

Permalink
Pin ubuntu build to 22.04 due to .NET 5 issue (#971)
Browse files Browse the repository at this point in the history
* Pin ubuntu build to 22.04 due to .NET 5 issue

* Use ubuntu-22.04 for Azure DevOps .NET 5 build agent

* Lucene.Net.Analysis.TokenAttributes.ICharTermAttribute: Minor documentation reformat (to force a build)

---------

Co-authored-by: Shad Storhaug <[email protected]>
  • Loading branch information
paulirwin and NightOwl888 authored Oct 13, 2024
1 parent 368aca7 commit 24bb0ca
Show file tree
Hide file tree
Showing 37 changed files with 146 additions and 145 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/Generate-TestWorkflows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
.PARAMETER OperatingSystems
A string array of Github Actions operating system monikers to run the tests on.
The default is @('windows-latest', 'ubuntu-latest').
The default is @('windows-latest', 'ubuntu-22.04').
.PARAMETER TestPlatforms
A string array of platforms to run the tests on. Valid values are x64 and x86.
Expand Down Expand Up @@ -70,7 +70,7 @@ param(

[string[]]$TestFrameworks = @('net8.0', 'net5.0','net472','net48'), # targets under test: net6.0, netstandard2.1, netstanard2.0, net462

[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest'),
[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-22.04'), # NOTE: ubuntu-24.04 breaks the .NET 5 build currently

[string[]]$TestPlatforms = @('x64'),

Expand Down Expand Up @@ -159,7 +159,7 @@ function Write-TestWorkflow(
[string[]]$Configurations = @('Release'),
[string[]]$TestFrameworks = @('net5.0', 'net48'),
[string[]]$TestPlatforms = @('x64'),
[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest', 'macos-latest'),
[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-22.04', 'macos-latest'),
[string]$DotNet8SDKVersion = $DotNet8SDKVersion,
[string]$DotNet6SDKVersion = $DotNet6SDKVersion,
[string]$DotNet5SDKVersion = $DotNet5SDKVersion) {
Expand Down Expand Up @@ -248,9 +248,9 @@ jobs:
platform: $platforms
configuration: $configurations
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-AllProjects.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -71,14 +71,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-Common.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -55,14 +55,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -52,14 +52,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -52,14 +52,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -55,14 +55,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -49,14 +49,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -53,14 +53,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -50,14 +50,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -62,14 +62,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Classification.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -50,14 +50,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Cli.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -69,14 +69,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Codecs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -48,14 +48,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Demo.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -57,14 +57,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Expressions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -50,14 +50,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Facet.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
####################################################################################
####################################################################################
# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1
####################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
Expand Down Expand Up @@ -52,14 +52,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-22.04]
framework: [net8.0, net5.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net48
- os: ubuntu-latest
- os: ubuntu-22.04
framework: net472
- os: macos-latest
framework: net48
Expand Down
Loading

0 comments on commit 24bb0ca

Please sign in to comment.