Skip to content

Commit 1b715dd

Browse files
committed
Test deploy
1 parent 6f9df9a commit 1b715dd

File tree

1 file changed

+159
-159
lines changed

1 file changed

+159
-159
lines changed

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

Lines changed: 159 additions & 159 deletions
Original file line numberDiff line numberDiff line change
@@ -51,169 +51,169 @@ jobs:
5151
- name: Git Pull LFS
5252
shell: bash
5353
run: git lfs pull
54-
55-
Build:
56-
needs: WarmLFS
57-
strategy:
58-
matrix:
59-
options:
60-
- os: ubuntu-latest
61-
framework: net10.0
62-
sdk: 10.0.x
63-
sdk-preview: true
64-
runtime: -x64
65-
codecov: false
66-
- os: macos-26
67-
framework: net10.0
68-
sdk: 10.0.x
69-
sdk-preview: true
70-
runtime: -x64
71-
codecov: false
72-
- os: windows-latest
73-
framework: net10.0
74-
sdk: 10.0.x
75-
sdk-preview: true
76-
runtime: -x64
77-
codecov: false
78-
- os: ubuntu-22.04-arm
79-
framework: net10.0
80-
sdk: 10.0.x
81-
sdk-preview: true
82-
runtime: -x64
83-
codecov: false
84-
85-
- os: ubuntu-latest
86-
framework: net8.0
87-
sdk: 8.0.x
88-
runtime: -x64
89-
codecov: false
90-
- os: macos-26
91-
framework: net8.0
92-
sdk: 8.0.x
93-
runtime: -x64
94-
codecov: false
95-
- os: windows-latest
96-
framework: net8.0
97-
sdk: 8.0.x
98-
runtime: -x64
99-
codecov: false
100-
- os: ubuntu-22.04-arm
101-
framework: net8.0
102-
sdk: 8.0.x
103-
runtime: -x64
104-
codecov: false
105-
106-
runs-on: ${{ matrix.options.os }}
107-
108-
steps:
109-
- name: Install libgdi+, which is required for tests running on ubuntu
110-
if: ${{ contains(matrix.options.os, 'ubuntu') }}
111-
run: |
112-
sudo apt-get update
113-
sudo apt-get -y install libgdiplus libgif-dev libglib2.0-dev libcairo2-dev libtiff-dev libexif-dev
114-
115-
- name: Install libgdi+, which is required for tests running on macos
116-
if: ${{ contains(matrix.options.os, 'macos-26') }}
117-
run: |
118-
brew update
119-
brew install mono-libgdiplus
120-
# Create symlinks to make libgdiplus discoverable
121-
sudo mkdir -p /usr/local/lib
122-
sudo ln -sf $(brew --prefix)/lib/libgdiplus.dylib /usr/local/lib/libgdiplus.dylib
123-
# Verify installation
124-
ls -la $(brew --prefix)/lib/libgdiplus* || echo "libgdiplus not found in brew prefix"
125-
ls -la /usr/local/lib/libgdiplus* || echo "libgdiplus not found in /usr/local/lib"
126-
127-
- name: Git Config
128-
shell: bash
129-
run: |
130-
git config --global core.autocrlf false
131-
git config --global core.longpaths true
132-
133-
- name: Git Checkout
134-
uses: actions/checkout@v4
135-
with:
136-
fetch-depth: 0
137-
submodules: recursive
138-
139-
# Use the warmed key from WarmLFS. Do not recompute or recreate .lfs-assets-id here.
140-
- name: Git Setup LFS Cache
141-
uses: actions/cache@v4
142-
with:
143-
path: .git/lfs
144-
key: ${{ needs.WarmLFS.outputs.lfs_key }}
145-
146-
- name: Git Pull LFS
147-
shell: bash
148-
run: git lfs pull
149-
150-
- name: NuGet Install
151-
uses: NuGet/setup-nuget@v2
152-
153-
- name: NuGet Setup Cache
154-
uses: actions/cache@v4
155-
id: nuget-cache
156-
with:
157-
path: ~/.nuget
158-
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }}
159-
restore-keys: ${{ runner.os }}-nuget-
160-
161-
- name: DotNet Setup
162-
if: ${{ matrix.options.sdk-preview != true }}
163-
uses: actions/setup-dotnet@v4
164-
with:
165-
dotnet-version: |
166-
8.0.x
167-
168-
- name: DotNet Setup Preview
169-
if: ${{ matrix.options.sdk-preview == true }}
170-
uses: actions/setup-dotnet@v4
171-
with:
172-
dotnet-version: |
173-
10.0.x
174-
175-
- name: DotNet Build
176-
if: ${{ matrix.options.sdk-preview != true }}
177-
shell: pwsh
178-
run: ./ci-build.ps1 "${{matrix.options.framework}}"
179-
env:
180-
SIXLABORS_TESTING: True
181-
182-
- name: DotNet Build Preview
183-
if: ${{ matrix.options.sdk-preview == true }}
184-
shell: pwsh
185-
run: ./ci-build.ps1 "${{matrix.options.framework}}"
186-
env:
187-
SIXLABORS_TESTING_PREVIEW: True
188-
189-
- name: DotNet Test
190-
if: ${{ matrix.options.sdk-preview != true }}
191-
shell: pwsh
192-
run: ./ci-test.ps1 "${{matrix.options.os}}" "${{matrix.options.framework}}" "${{matrix.options.runtime}}" "${{matrix.options.codecov}}"
193-
env:
194-
SIXLABORS_TESTING: True
195-
XUNIT_PATH: .\tests\ImageSharp.Tests # Required for xunit
196-
197-
- name: DotNet Test Preview
198-
if: ${{ matrix.options.sdk-preview == true }}
199-
shell: pwsh
200-
run: ./ci-test.ps1 "${{matrix.options.os}}" "${{matrix.options.framework}}" "${{matrix.options.runtime}}" "${{matrix.options.codecov}}"
201-
env:
202-
SIXLABORS_TESTING_PREVIEW: True
203-
XUNIT_PATH: .\tests\ImageSharp.Tests # Required for xunit
204-
205-
- name: Export Failed Output
206-
uses: actions/upload-artifact@v4
207-
if: failure()
208-
with:
209-
name: actual_output_${{ runner.os }}_${{ matrix.options.framework }}${{ matrix.options.runtime }}.zip
210-
path: tests/Images/ActualOutput/
54+
#
55+
# Build:
56+
# needs: WarmLFS
57+
# strategy:
58+
# matrix:
59+
# options:
60+
# - os: ubuntu-latest
61+
# framework: net10.0
62+
# sdk: 10.0.x
63+
# sdk-preview: true
64+
# runtime: -x64
65+
# codecov: false
66+
# - os: macos-26
67+
# framework: net10.0
68+
# sdk: 10.0.x
69+
# sdk-preview: true
70+
# runtime: -x64
71+
# codecov: false
72+
# - os: windows-latest
73+
# framework: net10.0
74+
# sdk: 10.0.x
75+
# sdk-preview: true
76+
# runtime: -x64
77+
# codecov: false
78+
# - os: ubuntu-22.04-arm
79+
# framework: net10.0
80+
# sdk: 10.0.x
81+
# sdk-preview: true
82+
# runtime: -x64
83+
# codecov: false
84+
#
85+
# - os: ubuntu-latest
86+
# framework: net8.0
87+
# sdk: 8.0.x
88+
# runtime: -x64
89+
# codecov: false
90+
# - os: macos-26
91+
# framework: net8.0
92+
# sdk: 8.0.x
93+
# runtime: -x64
94+
# codecov: false
95+
# - os: windows-latest
96+
# framework: net8.0
97+
# sdk: 8.0.x
98+
# runtime: -x64
99+
# codecov: false
100+
# - os: ubuntu-22.04-arm
101+
# framework: net8.0
102+
# sdk: 8.0.x
103+
# runtime: -x64
104+
# codecov: false
105+
#
106+
# runs-on: ${{ matrix.options.os }}
107+
#
108+
# steps:
109+
# - name: Install libgdi+, which is required for tests running on ubuntu
110+
# if: ${{ contains(matrix.options.os, 'ubuntu') }}
111+
# run: |
112+
# sudo apt-get update
113+
# sudo apt-get -y install libgdiplus libgif-dev libglib2.0-dev libcairo2-dev libtiff-dev libexif-dev
114+
#
115+
# - name: Install libgdi+, which is required for tests running on macos
116+
# if: ${{ contains(matrix.options.os, 'macos-26') }}
117+
# run: |
118+
# brew update
119+
# brew install mono-libgdiplus
120+
# # Create symlinks to make libgdiplus discoverable
121+
# sudo mkdir -p /usr/local/lib
122+
# sudo ln -sf $(brew --prefix)/lib/libgdiplus.dylib /usr/local/lib/libgdiplus.dylib
123+
# # Verify installation
124+
# ls -la $(brew --prefix)/lib/libgdiplus* || echo "libgdiplus not found in brew prefix"
125+
# ls -la /usr/local/lib/libgdiplus* || echo "libgdiplus not found in /usr/local/lib"
126+
#
127+
# - name: Git Config
128+
# shell: bash
129+
# run: |
130+
# git config --global core.autocrlf false
131+
# git config --global core.longpaths true
132+
#
133+
# - name: Git Checkout
134+
# uses: actions/checkout@v4
135+
# with:
136+
# fetch-depth: 0
137+
# submodules: recursive
138+
#
139+
# # Use the warmed key from WarmLFS. Do not recompute or recreate .lfs-assets-id here.
140+
# - name: Git Setup LFS Cache
141+
# uses: actions/cache@v4
142+
# with:
143+
# path: .git/lfs
144+
# key: ${{ needs.WarmLFS.outputs.lfs_key }}
145+
#
146+
# - name: Git Pull LFS
147+
# shell: bash
148+
# run: git lfs pull
149+
#
150+
# - name: NuGet Install
151+
# uses: NuGet/setup-nuget@v2
152+
#
153+
# - name: NuGet Setup Cache
154+
# uses: actions/cache@v4
155+
# id: nuget-cache
156+
# with:
157+
# path: ~/.nuget
158+
# key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }}
159+
# restore-keys: ${{ runner.os }}-nuget-
160+
#
161+
# - name: DotNet Setup
162+
# if: ${{ matrix.options.sdk-preview != true }}
163+
# uses: actions/setup-dotnet@v4
164+
# with:
165+
# dotnet-version: |
166+
# 8.0.x
167+
#
168+
# - name: DotNet Setup Preview
169+
# if: ${{ matrix.options.sdk-preview == true }}
170+
# uses: actions/setup-dotnet@v4
171+
# with:
172+
# dotnet-version: |
173+
# 10.0.x
174+
#
175+
# - name: DotNet Build
176+
# if: ${{ matrix.options.sdk-preview != true }}
177+
# shell: pwsh
178+
# run: ./ci-build.ps1 "${{matrix.options.framework}}"
179+
# env:
180+
# SIXLABORS_TESTING: True
181+
#
182+
# - name: DotNet Build Preview
183+
# if: ${{ matrix.options.sdk-preview == true }}
184+
# shell: pwsh
185+
# run: ./ci-build.ps1 "${{matrix.options.framework}}"
186+
# env:
187+
# SIXLABORS_TESTING_PREVIEW: True
188+
#
189+
# - name: DotNet Test
190+
# if: ${{ matrix.options.sdk-preview != true }}
191+
# shell: pwsh
192+
# run: ./ci-test.ps1 "${{matrix.options.os}}" "${{matrix.options.framework}}" "${{matrix.options.runtime}}" "${{matrix.options.codecov}}"
193+
# env:
194+
# SIXLABORS_TESTING: True
195+
# XUNIT_PATH: .\tests\ImageSharp.Tests # Required for xunit
196+
#
197+
# - name: DotNet Test Preview
198+
# if: ${{ matrix.options.sdk-preview == true }}
199+
# shell: pwsh
200+
# run: ./ci-test.ps1 "${{matrix.options.os}}" "${{matrix.options.framework}}" "${{matrix.options.runtime}}" "${{matrix.options.codecov}}"
201+
# env:
202+
# SIXLABORS_TESTING_PREVIEW: True
203+
# XUNIT_PATH: .\tests\ImageSharp.Tests # Required for xunit
204+
#
205+
# - name: Export Failed Output
206+
# uses: actions/upload-artifact@v4
207+
# if: failure()
208+
# with:
209+
# name: actual_output_${{ runner.os }}_${{ matrix.options.framework }}${{ matrix.options.runtime }}.zip
210+
# path: tests/Images/ActualOutput/
211211

212212
Publish:
213213
permissions:
214214
id-token: write # Required for OIDC
215215
contents: read
216-
needs: [Build]
216+
// needs: [Build]
217217
runs-on: ubuntu-latest
218218
if: (github.event_name == 'push')
219219
steps:
@@ -260,4 +260,4 @@ jobs:
260260
- name: Publish Internal
261261
shell: pwsh
262262
run: |
263-
sleet push .\artifacts\ --config sleet.json artifacts
263+
sleet push ./artifacts --config sleet.json artifacts

0 commit comments

Comments
 (0)