Skip to content

Commit

Permalink
Remove macos-12 runner. Wll be removed shortly.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Oct 29, 2024
1 parent 22caec5 commit 4b59fd6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/IKVM.ByteCode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
timeout-minutes: 240
needs:
- build
runs-on: ${{ fromJSON('{"win-x64":["windows-2022"],"linux-x64":["ubuntu-22.04"],"osx-x64":["macos-12"],"osx-arm64":["macos-14"]}')[matrix.sys] }}
runs-on: ${{ fromJSON('{"win-x64":["windows-2022"],"linux-x64":["ubuntu-22.04"],"osx-x64":["macos-13"],"osx-arm64":["macos-14"]}')[matrix.sys] }}
steps:
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v4
Expand Down
26 changes: 25 additions & 1 deletion src/IKVM.ByteCode/Encoding/AttributeTableEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public AttributeTableEncoder Attribute(Utf8ConstantHandle attributeName)
/// <summary>
/// Adds a new ConstantValue attribute.
/// </summary>
/// <param name="constantName"></param>
/// <param name="attributeName"></param>
/// <param name="value"></param>
public AttributeTableEncoder ConstantValue(Utf8ConstantHandle attributeName, ConstantHandle value)
{
Expand Down Expand Up @@ -179,6 +179,8 @@ public AttributeTableEncoder StackMapTable(Utf8ConstantHandle attributeName, Act
/// <summary>
/// Adds a new Exceptions attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="exceptions"></param>
public AttributeTableEncoder Exceptions(Utf8ConstantHandle attributeName, Action<ClassConstantTableEncoder> exceptions)
{
if (exceptions is null)
Expand All @@ -192,6 +194,7 @@ public AttributeTableEncoder Exceptions(Utf8ConstantHandle attributeName, Action
/// <summary>
/// Adds a new InnerClasses attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="classes"></param>
public AttributeTableEncoder InnerClasses(Utf8ConstantHandle attributeName, Action<InnerClassTableEncoder> classes)
{
Expand All @@ -206,6 +209,7 @@ public AttributeTableEncoder InnerClasses(Utf8ConstantHandle attributeName, Acti
/// <summary>
/// Adds a new EnclosingMethod attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="clazz"></param>
/// <param name="method"></param>
public AttributeTableEncoder EnclosingMethod(Utf8ConstantHandle attributeName, ClassConstantHandle clazz, NameAndTypeConstantHandle method)
Expand All @@ -220,6 +224,7 @@ public AttributeTableEncoder EnclosingMethod(Utf8ConstantHandle attributeName, C
/// <summary>
/// Adds a new Synthetic attribute.
/// </summary>
/// <param name="attributeName"></param>
public AttributeTableEncoder Synthetic(Utf8ConstantHandle attributeName)
{
return Attribute(attributeName);
Expand All @@ -228,6 +233,7 @@ public AttributeTableEncoder Synthetic(Utf8ConstantHandle attributeName)
/// <summary>
/// Adds a new Signature attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="signature"></param>
public AttributeTableEncoder Signature(Utf8ConstantHandle attributeName, Utf8ConstantHandle signature)
{
Expand All @@ -240,6 +246,7 @@ public AttributeTableEncoder Signature(Utf8ConstantHandle attributeName, Utf8Con
/// <summary>
/// Adds a new SourceFile attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="sourceFile"></param>
public AttributeTableEncoder SourceFile(Utf8ConstantHandle attributeName, Utf8ConstantHandle sourceFile)
{
Expand All @@ -252,6 +259,7 @@ public AttributeTableEncoder SourceFile(Utf8ConstantHandle attributeName, Utf8Co
/// <summary>
/// Adds a new SourceDebugExtension attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="debugExtension"></param>
public AttributeTableEncoder SourceDebugExtension(Utf8ConstantHandle attributeName, BlobBuilder debugExtension)
{
Expand All @@ -261,6 +269,7 @@ public AttributeTableEncoder SourceDebugExtension(Utf8ConstantHandle attributeNa
/// <summary>
/// Adds a new LineNumberTable attribute.
/// </summary>
/// <param name="attributeName"></param>
public AttributeTableEncoder LineNumberTable(Utf8ConstantHandle attributeName, Action<LineNumberTableEncoder> lineNumbers)
{
if (lineNumbers is null)
Expand All @@ -274,6 +283,7 @@ public AttributeTableEncoder LineNumberTable(Utf8ConstantHandle attributeName, A
/// <summary>
/// Adds a new LocalVariableTable attribute.
/// </summary>
/// <param name="attributeName"></param>
public AttributeTableEncoder LocalVariableTable(Utf8ConstantHandle attributeName, Action<LocalVariableTableEncoder> localVars)
{
if (localVars is null)
Expand All @@ -287,6 +297,7 @@ public AttributeTableEncoder LocalVariableTable(Utf8ConstantHandle attributeName
/// <summary>
/// Adds a new LocalVariableTypeTable attribute.
/// </summary>
/// <param name="attributeName"></param>
public AttributeTableEncoder LocalVariableTypeTable(Utf8ConstantHandle attributeName, Action<LocalVariableTypeTableEncoder> localVarTypes)
{
if (localVarTypes is null)
Expand All @@ -300,6 +311,7 @@ public AttributeTableEncoder LocalVariableTypeTable(Utf8ConstantHandle attribute
/// <summary>
/// Adds a new Deprecated attribute.
/// </summary>
/// <param name="attributeName"></param>
public AttributeTableEncoder Deprecated(Utf8ConstantHandle attributeName)
{
return Attribute(attributeName);
Expand All @@ -308,6 +320,7 @@ public AttributeTableEncoder Deprecated(Utf8ConstantHandle attributeName)
/// <summary>
/// Adds a new RuntimeVisibleAnnotations attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="annotations"></param>
public AttributeTableEncoder RuntimeVisibleAnnotations(Utf8ConstantHandle attributeName, Action<AnnotationTableEncoder> annotations)
{
Expand All @@ -322,6 +335,7 @@ public AttributeTableEncoder RuntimeVisibleAnnotations(Utf8ConstantHandle attrib
/// <summary>
/// Adds a new RuntimeInvisibleAnnotations attribute.
/// </summary>
/// <param name="attributeName"></param>
public AttributeTableEncoder RuntimeInvisibleAnnotations(Utf8ConstantHandle attributeName, Action<AnnotationTableEncoder> annotations)
{
if (annotations is null)
Expand All @@ -335,6 +349,7 @@ public AttributeTableEncoder RuntimeInvisibleAnnotations(Utf8ConstantHandle attr
/// <summary>
/// Adds a new RuntimeVisibleParameterAnnotations attribute.
/// </summary>
/// <param name="attributeName"></param>
public AttributeTableEncoder RuntimeVisibleParameterAnnotations(Utf8ConstantHandle attributeName, Action<ParameterAnnotationTableEncoder> parameterAnnotations)
{
if (parameterAnnotations is null)
Expand All @@ -348,6 +363,7 @@ public AttributeTableEncoder RuntimeVisibleParameterAnnotations(Utf8ConstantHand
/// <summary>
/// Adds a new RuntimeInvisibleParameterAnnotations attribute.
/// </summary>
/// <param name="attributeName"></param>
public AttributeTableEncoder RuntimeInvisibleParameterAnnotations(Utf8ConstantHandle attributeName, Action<ParameterAnnotationTableEncoder> parameterAnnotations)
{
if (parameterAnnotations is null)
Expand All @@ -361,6 +377,7 @@ public AttributeTableEncoder RuntimeInvisibleParameterAnnotations(Utf8ConstantHa
/// <summary>
/// Adds a new RuntimeVisibleTypeAnnotations attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="typeAnnotations"></param>
public AttributeTableEncoder RuntimeVisibleTypeAnnotations(Utf8ConstantHandle attributeName, Action<TypeAnnotationTableEncoder> typeAnnotations)
{
Expand All @@ -375,6 +392,7 @@ public AttributeTableEncoder RuntimeVisibleTypeAnnotations(Utf8ConstantHandle at
/// <summary>
/// Adds a new RuntimeInvisibleTypeAnnotations attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="typeAnnotations"></param>
public AttributeTableEncoder RuntimeInvisibleTypeAnnotations(Utf8ConstantHandle attributeName, Action<TypeAnnotationTableEncoder> typeAnnotations)
{
Expand All @@ -389,6 +407,7 @@ public AttributeTableEncoder RuntimeInvisibleTypeAnnotations(Utf8ConstantHandle
/// <summary>
/// Adds a new AnnotationDefault attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="defaultValue"></param>
public AttributeTableEncoder AnnotationDefault(Utf8ConstantHandle attributeName, Action<ElementValueEncoder> defaultValue)
{
Expand All @@ -403,6 +422,7 @@ public AttributeTableEncoder AnnotationDefault(Utf8ConstantHandle attributeName,
/// <summary>
/// Adds a new BootstrapMethods attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="bootstrapMethods"></param>
public AttributeTableEncoder BootstrapMethods(Utf8ConstantHandle attributeName, Action<BootstrapMethodTableEncoder> bootstrapMethods)
{
Expand All @@ -417,6 +437,7 @@ public AttributeTableEncoder BootstrapMethods(Utf8ConstantHandle attributeName,
/// <summary>
/// Adds a new MethodParameters attribute.
/// </summary>
/// <param name="attributeName"></param>
public AttributeTableEncoder MethodParameters(Utf8ConstantHandle attributeName, Action<MethodParameterTableEncoder> parameters)
{
if (parameters is null)
Expand All @@ -430,6 +451,7 @@ public AttributeTableEncoder MethodParameters(Utf8ConstantHandle attributeName,
/// <summary>
/// Adds a new Module attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="name"></param>
/// <param name="flags"></param>
/// <param name="version"></param>
Expand Down Expand Up @@ -469,6 +491,7 @@ public AttributeTableEncoder Module(Utf8ConstantHandle attributeName, ModuleCons
/// <summary>
/// Adds a new ModulePackages attribute.
/// </summary>
/// <param name="attributeName"></param>
public AttributeTableEncoder ModulePackages(Utf8ConstantHandle attributeName, Action<PackageConstantTableEncoder> packages)
{
var b = new BlobBuilder();
Expand All @@ -479,6 +502,7 @@ public AttributeTableEncoder ModulePackages(Utf8ConstantHandle attributeName, Ac
/// <summary>
/// Adds a new ModuleMainClass attribute.
/// </summary>
/// <param name="attributeName"></param>
/// <param name="mainClass"></param>
public AttributeTableEncoder ModuleMainClass(Utf8ConstantHandle attributeName, ClassConstantHandle mainClass)
{
Expand Down

0 comments on commit 4b59fd6

Please sign in to comment.