mirror of https://github.com/icedland/iced.git
Update build.yml
This commit is contained in:
parent
092e8202b9
commit
e84995f351
|
@ -1,5 +1,17 @@
|
||||||
name: GitHub CI
|
name: GitHub CI
|
||||||
on: push
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'src/**'
|
||||||
|
- '!**/*.md'
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'src/**'
|
||||||
|
- '!**/*.md'
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-csharp-windows:
|
build-csharp-windows:
|
||||||
|
@ -78,23 +90,28 @@ jobs:
|
||||||
.\build.ps1
|
.\build.ps1
|
||||||
|
|
||||||
- name: upload-artifact doesn't support wildcards
|
- name: upload-artifact doesn't support wildcards
|
||||||
|
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
New-Item -ItemType Directory nuget_files > $null
|
New-Item -ItemType Directory nuget_files > $null
|
||||||
Copy-Item src\csharp\Intel\Iced\bin\Release\*.*nupkg nuget_files
|
Copy-Item src\csharp\Intel\Iced\bin\Release\*.*nupkg nuget_files
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
|
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
name: nupkg
|
name: nupkg
|
||||||
path: nuget_files
|
path: nuget_files
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v1
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
with:
|
with:
|
||||||
name: coverage.info
|
name: coverage.info
|
||||||
path: src/csharp/Intel/Iced.UnitTests/coverage.netcoreapp3.1.info
|
path: src/csharp/Intel/Iced.UnitTests/coverage.netcoreapp3.1.info
|
||||||
|
|
||||||
- name: Upload coverage report
|
- name: Upload coverage report
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
curl https://codecov.io/bash -o codecov
|
curl https://codecov.io/bash -o codecov
|
||||||
chmod +x codecov
|
chmod +x codecov
|
||||||
|
|
Loading…
Reference in New Issue