Skip to content

Commit fcaef77

Browse files
Fix CI build errors.
1 parent 80b336b commit fcaef77

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767

6868
steps:
6969
- name: Install libgdi+, which is required for tests running on ubuntu
70-
if: ${{ matrix.options.os == 'buildjet-4vcpu-ubuntu-2204-arm' }}
70+
if: ${{ contains(matrix.options.os, 'ubuntu') }}
7171
run: sudo apt-get -y install libgdiplus libgif-dev libglib2.0-dev libcairo2-dev libtiff-dev libexif-dev
7272

7373
- name: Git Config

.github/workflows/code-coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
runs-on: ${{matrix.options.os}}
1818

1919
steps:
20+
- name: Install libgdi+, which is required for tests running on ubuntu
21+
run: sudo apt-get -y install libgdiplus libgif-dev libglib2.0-dev libcairo2-dev libtiff-dev libexif-dev
22+
2023
- name: Git Config
2124
shell: bash
2225
run: |

src/ImageSharp/Formats/Png/PngThrowHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public static void ThrowInvalidImageContentException(string errorMessage, Except
4040
public static void ThrowInvalidChunkCrc(string chunkTypeName) => throw new InvalidImageContentException($"CRC Error. PNG {chunkTypeName} chunk is corrupt!");
4141

4242
[DoesNotReturn]
43-
public static void ThrowInvalidParameter(object value, string message, [CallerArgumentExpression(nameof(value))] string name = "")
43+
public static void ThrowInvalidParameter(object value, string message, [CallerArgumentExpression("value")] string name = "")
4444
=> throw new NotSupportedException($"Invalid {name}. {message}. Was '{value}'.");
4545

4646
[DoesNotReturn]
47-
public static void ThrowInvalidParameter(object value1, object value2, string message, [CallerArgumentExpression(nameof(value1))] string name1 = "", [CallerArgumentExpression(nameof(value1))] string name2 = "")
47+
public static void ThrowInvalidParameter(object value1, object value2, string message, [CallerArgumentExpression("value1")] string name1 = "", [CallerArgumentExpression("value2")] string name2 = "")
4848
=> throw new NotSupportedException($"Invalid {name1} or {name2}. {message}. Was '{value1}' and '{value2}'.");
4949

5050
[DoesNotReturn]

0 commit comments

Comments
 (0)