mirror of https://github.com/SixLabors/ImageSharp
21 changed files with 344 additions and 418 deletions
@ -1,116 +1,98 @@ |
|||
name: Build |
|||
|
|||
on: |
|||
push: |
|||
branches: |
|||
- master |
|||
tags: |
|||
- 'v*' |
|||
pull_request: |
|||
branches: |
|||
- master |
|||
|
|||
on: |
|||
push: |
|||
branches: |
|||
- master |
|||
tags: |
|||
- "v*" |
|||
pull_request: |
|||
branches: |
|||
- master |
|||
|
|||
jobs: |
|||
Coverage: |
|||
runs-on: windows-latest |
|||
needs: [Build] |
|||
steps: |
|||
- uses: actions/checkout@v1 |
|||
|
|||
- name: Enable long file paths |
|||
run: git config --global core.longpaths true |
|||
|
|||
- name: Update submodules |
|||
run: git submodule -q update --init |
|||
|
|||
- name: Generate Test Coverage |
|||
shell: pwsh |
|||
run: ./tests/CodeCoverage/CodeCoverage.ps1 |
|||
env: |
|||
CI : True |
|||
|
|||
- name: Update codecov |
|||
uses: iansu/codecov-action-node@v1.0.0 |
|||
with: |
|||
token: ${{secrets.CODECOV_TOKEN}} |
|||
file: "ImageSharp.Coverage.xml" |
|||
flags: unittests |
|||
|
|||
Build: |
|||
strategy: |
|||
matrix: |
|||
options: |
|||
- os : ubuntu-latest |
|||
framework: netcoreapp2.1 |
|||
is32Bit: False |
|||
- os : windows-latest |
|||
framework: netcoreapp2.1 |
|||
is32Bit: False |
|||
- os : windows-latest |
|||
framework: net472 |
|||
is32Bit: False |
|||
- os : windows-latest |
|||
framework: net472 |
|||
is32Bit: True |
|||
|
|||
runs-on: ${{ matrix.options.os }} |
|||
|
|||
steps: |
|||
- uses: actions/checkout@v1 |
|||
|
|||
- name: Enable long file paths |
|||
run: | |
|||
git config --global core.autocrlf false |
|||
git config --global core.longpaths true |
|||
|
|||
- name: Update submodules |
|||
run: git submodule -q update --init |
|||
|
|||
- name: Build |
|||
shell: pwsh |
|||
run: | |
|||
$DebugPreference = "Continue" |
|||
./build.ps1 "${{matrix.options.framework}}" |
|||
|
|||
- name: Test |
|||
shell: pwsh |
|||
run: ./run-tests.ps1 "${{matrix.options.framework}}" "${{matrix.options.is32Bit}}" true |
|||
env: |
|||
CI : True |
|||
|
|||
Publish: |
|||
runs-on: windows-latest |
|||
needs: [Build] |
|||
if : github.event_name == 'push' |
|||
steps: |
|||
- uses: actions/checkout@v1 |
|||
|
|||
- name: Enable long file paths |
|||
run: git config --global core.longpaths true |
|||
|
|||
- name: Update submodules |
|||
run: git submodule -q update --init |
|||
|
|||
- name: Build |
|||
shell: pwsh |
|||
run: | |
|||
$DebugPreference = "Continue" |
|||
./build.ps1 |
|||
|
|||
- name : install nuget |
|||
if: success() |
|||
uses: warrenbuckley/Setup-Nuget@v1 |
|||
|
|||
- name: Configure feed |
|||
if: success() |
|||
run: nuget.exe source Add -Name "GitHub" -Source "https://nuget.pkg.github.com/sixlabors/index.json" -UserName ${{github.actor}} -Password ${{ secrets.GITHUB_TOKEN }} |
|||
|
|||
- name: Publish to nightly feed - github |
|||
if: success() |
|||
run: nuget.exe push -Source "GitHub" .\artifacts\*.nupkg |
|||
|
|||
- name: Publish to nightly feed -myget |
|||
if: success() |
|||
run: nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package |
|||
|
|||
# todo if github.ref starts with 'refs/tags' then it was tag push and we can optionally push out package to nuget.org |
|||
Build: |
|||
strategy: |
|||
matrix: |
|||
opts: |
|||
- os: ubuntu-latest |
|||
framework: netcoreapp2.1 |
|||
runtime: linux-x64 |
|||
cover: False |
|||
- os: windows-latest |
|||
framework: netcoreapp2.1 |
|||
runtime: win-x64 |
|||
cover: True |
|||
- os: windows-latest |
|||
framework: net472 |
|||
runtime: win-x64 |
|||
cover: False |
|||
- os: windows-latest |
|||
framework: net472 |
|||
runtime: win-x86 |
|||
cover: False |
|||
|
|||
runs-on: ${{ matrix.opts.os }} |
|||
|
|||
steps: |
|||
- uses: actions/checkout@v1 |
|||
|
|||
- name: Install nuget |
|||
uses: NuGet/setup-nuget@v1 |
|||
|
|||
- name: Enable long file paths |
|||
run: | |
|||
git config --global core.autocrlf false |
|||
git config --global core.longpaths true |
|||
|
|||
- name: Update Submodules |
|||
run: git submodule -q update --init --recursive |
|||
|
|||
- name: Build |
|||
shell: pwsh |
|||
run: | |
|||
$DebugPreference = "Continue" |
|||
./build.ps1 "${{matrix.opts.framework}}" |
|||
|
|||
- name: Test no Coverage |
|||
if: matrix.opts.cover != 'True' |
|||
run: dotnet test **/*tests/*.csproj -c Release -f "${{matrix.opt.framework}}" -r "${{matrix.opt.runtime}}" --no-build --filter Sandbox |
|||
|
|||
- name: Test with Coverage |
|||
if: matrix.opts.cover == 'True' |
|||
run: dotnet test **/*tests/*.csproj -c Release -f "${{matrix.opt.framework}}" -r "${{matrix.opt.runtime}}" --no-build --filter Sandbox /p:CollectCoverage=true /p:CoverletOutputFormat=opencover |
|||
|
|||
- name: Update Codecov |
|||
uses: iansu/codecov-action-node@v1.0.0 |
|||
if: matrix.opts.cover == 'True' |
|||
with: |
|||
token: ${{secrets.CODECOV_TOKEN}} |
|||
file: "coverage.xml" |
|||
flags: unittests |
|||
|
|||
# Publish: |
|||
runs-on: windows-latest |
|||
needs: [Build] |
|||
if: github.event_name == 'push' |
|||
steps: |
|||
- uses: actions/checkout@v1 |
|||
|
|||
- name: install nuget |
|||
uses: NuGet/setup-nuget@v1 |
|||
|
|||
- name: Enable long file paths |
|||
run: git config --global core.longpaths true |
|||
|
|||
- name: Update submodules |
|||
run: git submodule -q update --init --recursive |
|||
|
|||
- name: Build |
|||
shell: pwsh |
|||
run: | |
|||
$DebugPreference = "Continue" |
|||
./build.ps1 |
|||
|
|||
- name: Publish to nightly feed -myget |
|||
if: success() |
|||
run: nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package |
|||
# TODO: if github.ref starts with 'refs/tags' then it was tag push and we can optionally push out package to nuget.org |
|||
|
|||
@ -0,0 +1,116 @@ |
|||
name: Build |
|||
|
|||
on: |
|||
push: |
|||
branches: |
|||
- master |
|||
tags: |
|||
- "v*" |
|||
pull_request: |
|||
branches: |
|||
- master |
|||
|
|||
jobs: |
|||
Coverage: |
|||
runs-on: windows-latest |
|||
needs: [Build] |
|||
steps: |
|||
- uses: actions/checkout@v1 |
|||
|
|||
- name: Install nuget |
|||
uses: NuGet/setup-nuget@v1 |
|||
|
|||
- name: Enable long file paths |
|||
run: git config --global core.longpaths true |
|||
|
|||
- name: Update submodules |
|||
run: git submodule -q update --init --recursive |
|||
|
|||
- name: Generate Test Coverage |
|||
shell: pwsh |
|||
run: ./tests/CodeCoverage/CodeCoverage.ps1 |
|||
env: |
|||
CI: True |
|||
|
|||
- name: Update codecov |
|||
uses: iansu/codecov-action-node@v1.0.0 |
|||
with: |
|||
token: ${{secrets.CODECOV_TOKEN}} |
|||
file: "ImageSharp.Coverage.xml" |
|||
flags: unittests |
|||
|
|||
Build: |
|||
strategy: |
|||
matrix: |
|||
opts: |
|||
- os: ubuntu-latest |
|||
framework: netcoreapp2.1 |
|||
is32Bit: False |
|||
doCoverage: False |
|||
- os: windows-latest |
|||
framework: netcoreapp2.1 |
|||
is32Bit: False |
|||
doCoverage: True |
|||
- os: windows-latest |
|||
framework: net472 |
|||
is32Bit: False |
|||
doCoverage: False |
|||
- os: windows-latest |
|||
framework: net472 |
|||
is32Bit: True |
|||
doCoverage: False |
|||
|
|||
runs-on: ${{ matrix.opts.os }} |
|||
|
|||
steps: |
|||
- uses: actions/checkout@v1 |
|||
|
|||
- name: install nuget |
|||
uses: NuGet/setup-nuget@v1 |
|||
|
|||
- name: Enable long file paths |
|||
run: | |
|||
git config --global core.autocrlf false |
|||
git config --global core.longpaths true |
|||
|
|||
- name: Update submodules |
|||
run: git submodule -q update --init |
|||
|
|||
- name: Build |
|||
shell: pwsh |
|||
run: | |
|||
$DebugPreference = "Continue" |
|||
./build.ps1 "${{matrix.opts.framework}}" |
|||
|
|||
- name: Test |
|||
shell: pwsh |
|||
run: ./run-tests.ps1 "${{ matrix.opts.os }}" "${{matrix.opts.framework}}" "${{matrix.opts.is32Bit}}" "${{matrix.opts.doCoverage}}" |
|||
env: |
|||
CI: True |
|||
|
|||
Publish: |
|||
runs-on: windows-latest |
|||
needs: [Build] |
|||
if: github.event_name == 'push' |
|||
steps: |
|||
- uses: actions/checkout@v1 |
|||
|
|||
- name: install nuget |
|||
uses: NuGet/setup-nuget@v1 |
|||
|
|||
- name: Enable long file paths |
|||
run: git config --global core.longpaths true |
|||
|
|||
- name: Update submodules |
|||
run: git submodule -q update --init --recursive |
|||
|
|||
- name: Build |
|||
shell: pwsh |
|||
run: | |
|||
$DebugPreference = "Continue" |
|||
./build.ps1 |
|||
|
|||
- name: Publish to nightly feed -myget |
|||
if: success() |
|||
run: nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package |
|||
# TODO: if github.ref starts with 'refs/tags' then it was tag push and we can optionally push out package to nuget.org |
|||
@ -1,28 +0,0 @@ |
|||
{ |
|||
// Use IntelliSense to find out which attributes exist for C# debugging |
|||
// Use hover for the description of the existing attributes |
|||
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md |
|||
"version": "0.2.0", |
|||
"configurations": [ |
|||
{ |
|||
"name": ".NET Core Launch (console)", |
|||
"type": "coreclr", |
|||
"request": "launch", |
|||
"preLaunchTask": "build", |
|||
// If you have changed target frameworks, make sure to update the program path. |
|||
"program": "${workspaceRoot}/tests/ImageSharp.Benchmarks/bin/Debug/netcoreapp2.0/ImageSharp.Benchmarks.dll", |
|||
"args": [], |
|||
"cwd": "${workspaceRoot}/samples/AvatarWithRoundedCorner", |
|||
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window |
|||
"console": "internalConsole", |
|||
"stopAtEntry": false, |
|||
"internalConsoleOptions": "openOnSessionStart" |
|||
}, |
|||
{ |
|||
"name": ".NET Core Attach", |
|||
"type": "coreclr", |
|||
"request": "attach", |
|||
"processId": "${command:pickProcess}" |
|||
} |
|||
] |
|||
} |
|||
@ -1,31 +0,0 @@ |
|||
{ |
|||
// See https://go.microsoft.com/fwlink/?LinkId=733558 |
|||
// for the documentation about the tasks.json format |
|||
"version": "0.1.0", |
|||
"command": "dotnet", |
|||
"isShellCommand": true, |
|||
"args": [], |
|||
"tasks": [ |
|||
{ |
|||
"taskName": "build", |
|||
"args": [ "ImageSharp.sln" ], |
|||
"isBuildCommand": true, |
|||
"showOutput": "always", |
|||
"problemMatcher": "$msCompile" |
|||
}, |
|||
{ |
|||
"taskName": "build benchmark", |
|||
"suppressTaskName": true, |
|||
"args": [ "build", "tests/ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj", "-f", "netcoreapp2.0", "-c", "Release" ], |
|||
"showOutput": "always", |
|||
"problemMatcher": "$msCompile" |
|||
}, |
|||
{ |
|||
"taskName": "test", |
|||
"args": ["tests/ImageSharp.Tests/ImageSharp.Tests.csproj", "-c", "release", "-f", "netcoreapp2.0"], |
|||
"isTestCommand": true, |
|||
"showOutput": "always", |
|||
"problemMatcher": "$msCompile" |
|||
} |
|||
] |
|||
} |
|||
@ -1,3 +0,0 @@ |
|||
version https://git-lfs.github.com/spec/v1 |
|||
oid sha256:148a268c589b628f5d0b5af0e86911a0b393c35b8b25233c71553657c88e0b96 |
|||
size 7568 |
|||
@ -1,3 +0,0 @@ |
|||
version https://git-lfs.github.com/spec/v1 |
|||
oid sha256:7e4b2ff72aef1979500cd130c28490a00be116bb833bc96ca30c85dc0596099c |
|||
size 15413 |
|||
@ -1,3 +0,0 @@ |
|||
version https://git-lfs.github.com/spec/v1 |
|||
oid sha256:021c12313afbdc65f58bfea8c7b436d5c2102513bb63d9e64ee2b61a1344c56a |
|||
size 1799 |
|||
@ -1,3 +0,0 @@ |
|||
version https://git-lfs.github.com/spec/v1 |
|||
oid sha256:3ae54ae0035df1f8f1459081e2f1d5cceda6f88cca6ec015d8c0209bf0d34edf |
|||
size 32534 |
|||
@ -1,3 +0,0 @@ |
|||
version https://git-lfs.github.com/spec/v1 |
|||
oid sha256:92896854265693f28f9a503b9093cb2c9a4a9b329f310732efdd9c6f6c3761bc |
|||
size 3736 |
|||
@ -1,3 +0,0 @@ |
|||
version https://git-lfs.github.com/spec/v1 |
|||
oid sha256:3ae54ae0035df1f8f1459081e2f1d5cceda6f88cca6ec015d8c0209bf0d34edf |
|||
size 32534 |
|||
|
Before Width: | Height: | Size: 2.7 KiB |
Loading…
Reference in new issue