Skip to content

Commit cbeb4c2

Browse files
Update build workflow
1 parent 233bbfe commit cbeb4c2

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
framework: netcoreapp3.1
2020
runtime: -x64
2121
codecov: false
22+
- os: macos-latest
23+
framework: netcoreapp3.1
24+
runtime: -x64
25+
codecov: false
2226
- os: windows-latest
2327
framework: netcoreapp3.1
2428
runtime: -x64
@@ -53,6 +57,14 @@ jobs:
5357
git fetch --prune --unshallow
5458
git submodule -q update --init --recursive
5559
60+
- name: Setup NuGet Cache
61+
uses: actions/cache@v2
62+
id: nuget-cache
63+
with:
64+
path: ~/.nuget
65+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }}
66+
restore-keys: ${{ runner.os }}-nuget-
67+
5668
- name: Build
5769
shell: pwsh
5870
run: ./ci-build.ps1 "${{matrix.options.framework}}"
@@ -64,6 +76,13 @@ jobs:
6476
CI: True
6577
XUNIT_PATH: .\tests\ImageSharp.Drawing.Tests # Required for xunit
6678

79+
- name: Store Output Images after failed tests
80+
uses: actions/upload-artifact@v2
81+
if: failure()
82+
with:
83+
name: actual_output_${{ runner.os }}_${{ matrix.options.framework }}${{ matrix.options.runtime }}.zip
84+
path: tests/Images/ActualOutput/
85+
6786
- name: Update Codecov
6887
uses: codecov/codecov-action@v1
6988
if: matrix.options.codecov == true && startsWith(github.repository, 'SixLabors')

tests/Directory.Build.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<PackageReference Update="BenchmarkDotNet" Version="0.12.1" />
2222
<PackageReference Update="Magick.NET-Q16-AnyCPU" Version="7.22.0" />
2323
<PackageReference Update="Moq" Version="4.14.6" />
24+
<PackageReference Include="runtime.osx.10.10-x64.CoreCompat.System.Drawing" Version="5.8.64" Condition="'$(IsOSX)'=='true'" />
2425
<PackageReference Update="System.Drawing.Common" Version="4.7.0" />
2526
<PackageReference Update="GeoJSON.Net" Version="1.2.19" />
2627
<PackageReference Update="SkiaSharp" Version="2.80.2" />

0 commit comments

Comments
 (0)