mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
ci: tidy up build script
This commit is contained in:
45
.github/workflows/build.yml
vendored
45
.github/workflows/build.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Build Squirrel
|
||||
name: Build
|
||||
|
||||
on: [ push, pull_request ]
|
||||
|
||||
@@ -9,13 +9,13 @@ jobs:
|
||||
os: [macos-latest, windows-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Print dotnet version
|
||||
run: dotnet --info
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Print dotnet version
|
||||
run: dotnet --info
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
@@ -39,6 +39,7 @@ jobs:
|
||||
- name: Install NBGV
|
||||
run: dotnet tool install -g nbgv
|
||||
if: ${{ matrix.os == 'macos-latest' }}
|
||||
continue-on-error: true
|
||||
|
||||
- name: Install .Net Coverage
|
||||
run: dotnet tool install -g dotnet-coverage
|
||||
@@ -81,12 +82,6 @@ jobs:
|
||||
src/Rust/target/release/updatemac
|
||||
src/Rust/target/release/*.exe
|
||||
|
||||
# - name: Upload Coverage Artifacts
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: coverage
|
||||
# path: test/coverage*.xml
|
||||
|
||||
- name: Upload Coverage to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
env:
|
||||
@@ -99,6 +94,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
steps:
|
||||
- name: Print dotnet version
|
||||
run: dotnet --info
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
@@ -110,19 +108,6 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nuget-
|
||||
|
||||
# - name: Install .NET 6
|
||||
# uses: actions/setup-dotnet@v4
|
||||
# with:
|
||||
# dotnet-version: 6.0.x
|
||||
|
||||
# - name: Install .NET 8
|
||||
# uses: actions/setup-dotnet@v4
|
||||
# with:
|
||||
# dotnet-version: 8.0.x
|
||||
|
||||
- name: Print dotnet version
|
||||
run: dotnet --info
|
||||
|
||||
- name: Download Rust Windows
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@@ -135,12 +120,6 @@ jobs:
|
||||
name: rust-windows-latest
|
||||
path: src/Rust/target/release
|
||||
|
||||
# - name: Download Coverage Artifacts
|
||||
# uses: actions/download-artifact@v4
|
||||
# with:
|
||||
# name: coverage
|
||||
# path: ./coverage
|
||||
|
||||
- name: Build .NET
|
||||
run: dotnet build -c Release /p:PackRustAssets=true
|
||||
|
||||
@@ -150,14 +129,6 @@ jobs:
|
||||
name: packages
|
||||
path: build/Release/*.nupkg
|
||||
|
||||
# - name: Upload Coverage to Codecov
|
||||
# uses: codecov/codecov-action@v3
|
||||
# env:
|
||||
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
# with:
|
||||
# directory: ./coverage
|
||||
# fail_ci_if_error: true
|
||||
|
||||
- name: Publish to GitHub Packages
|
||||
shell: pwsh
|
||||
run: dotnet nuget push build/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate
|
||||
Reference in New Issue
Block a user