@ -1,116 +1,98 @@ |
|||||
name: Build |
name: Build |
||||
|
|
||||
on: |
on: |
||||
push: |
push: |
||||
branches: |
branches: |
||||
- master |
- master |
||||
tags: |
tags: |
||||
- 'v*' |
- "v*" |
||||
pull_request: |
pull_request: |
||||
branches: |
branches: |
||||
- master |
- master |
||||
|
|
||||
jobs: |
jobs: |
||||
Coverage: |
Build: |
||||
runs-on: windows-latest |
strategy: |
||||
needs: [Build] |
matrix: |
||||
steps: |
opts: |
||||
- uses: actions/checkout@v1 |
- os: ubuntu-latest |
||||
|
framework: netcoreapp2.1 |
||||
- name: Enable long file paths |
runtime: linux-x64 |
||||
run: git config --global core.longpaths true |
cover: False |
||||
|
- os: windows-latest |
||||
- name: Update submodules |
framework: netcoreapp2.1 |
||||
run: git submodule -q update --init |
runtime: win-x64 |
||||
|
cover: True |
||||
- name: Generate Test Coverage |
- os: windows-latest |
||||
shell: pwsh |
framework: net472 |
||||
run: ./tests/CodeCoverage/CodeCoverage.ps1 |
runtime: win-x64 |
||||
env: |
cover: False |
||||
CI : True |
- os: windows-latest |
||||
|
framework: net472 |
||||
- name: Update codecov |
runtime: win-x86 |
||||
uses: iansu/codecov-action-node@v1.0.0 |
cover: False |
||||
with: |
|
||||
token: ${{secrets.CODECOV_TOKEN}} |
runs-on: ${{ matrix.opts.os }} |
||||
file: "ImageSharp.Coverage.xml" |
|
||||
flags: unittests |
steps: |
||||
|
- uses: actions/checkout@v1 |
||||
Build: |
|
||||
strategy: |
- name: Install nuget |
||||
matrix: |
uses: NuGet/setup-nuget@v1 |
||||
options: |
|
||||
- os : ubuntu-latest |
- name: Enable long file paths |
||||
framework: netcoreapp2.1 |
run: | |
||||
is32Bit: False |
git config --global core.autocrlf false |
||||
- os : windows-latest |
git config --global core.longpaths true |
||||
framework: netcoreapp2.1 |
|
||||
is32Bit: False |
- name: Update Submodules |
||||
- os : windows-latest |
run: git submodule -q update --init --recursive |
||||
framework: net472 |
|
||||
is32Bit: False |
- name: Build |
||||
- os : windows-latest |
shell: pwsh |
||||
framework: net472 |
run: | |
||||
is32Bit: True |
$DebugPreference = "Continue" |
||||
|
./build.ps1 "${{matrix.opts.framework}}" |
||||
runs-on: ${{ matrix.options.os }} |
|
||||
|
- name: Test no Coverage |
||||
steps: |
if: matrix.opts.cover != 'True' |
||||
- uses: actions/checkout@v1 |
run: dotnet test **/*tests/*.csproj -c Release -f "${{matrix.opt.framework}}" -r "${{matrix.opt.runtime}}" --no-build --filter Sandbox |
||||
|
|
||||
- name: Enable long file paths |
- name: Test with Coverage |
||||
run: | |
if: matrix.opts.cover == 'True' |
||||
git config --global core.autocrlf false |
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 |
||||
git config --global core.longpaths true |
|
||||
|
- name: Update Codecov |
||||
- name: Update submodules |
uses: iansu/codecov-action-node@v1.0.0 |
||||
run: git submodule -q update --init |
if: matrix.opts.cover == 'True' |
||||
|
with: |
||||
- name: Build |
token: ${{secrets.CODECOV_TOKEN}} |
||||
shell: pwsh |
file: "coverage.xml" |
||||
run: | |
flags: unittests |
||||
$DebugPreference = "Continue" |
|
||||
./build.ps1 "${{matrix.options.framework}}" |
# Publish: |
||||
|
runs-on: windows-latest |
||||
- name: Test |
needs: [Build] |
||||
shell: pwsh |
if: github.event_name == 'push' |
||||
run: ./run-tests.ps1 "${{matrix.options.framework}}" "${{matrix.options.is32Bit}}" true |
steps: |
||||
env: |
- uses: actions/checkout@v1 |
||||
CI : True |
|
||||
|
- name: install nuget |
||||
Publish: |
uses: NuGet/setup-nuget@v1 |
||||
runs-on: windows-latest |
|
||||
needs: [Build] |
- name: Enable long file paths |
||||
if : github.event_name == 'push' |
run: git config --global core.longpaths true |
||||
steps: |
|
||||
- uses: actions/checkout@v1 |
- name: Update submodules |
||||
|
run: git submodule -q update --init --recursive |
||||
- name: Enable long file paths |
|
||||
run: git config --global core.longpaths true |
- name: Build |
||||
|
shell: pwsh |
||||
- name: Update submodules |
run: | |
||||
run: git submodule -q update --init |
$DebugPreference = "Continue" |
||||
|
./build.ps1 |
||||
- name: Build |
|
||||
shell: pwsh |
- name: Publish to nightly feed -myget |
||||
run: | |
if: success() |
||||
$DebugPreference = "Continue" |
run: nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package |
||||
./build.ps1 |
# TODO: if github.ref starts with 'refs/tags' then it was tag push and we can optionally push out package to nuget.org |
||||
|
|
||||
- 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 |
|
||||
|
|||||
@ -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" |
|
||||
} |
|
||||
] |
|
||||
} |
|
||||
|
Before Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 2.7 KiB |