mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
ci: avoid building dotnet during test runs to speed things up
This commit is contained in:
40
.github/workflows/build.yml
vendored
40
.github/workflows/build.yml
vendored
@@ -83,15 +83,32 @@ jobs:
|
|||||||
src/Rust/target/release/*.exe
|
src/Rust/target/release/*.exe
|
||||||
src/Rust/target/release/*.pdb
|
src/Rust/target/release/*.pdb
|
||||||
|
|
||||||
test-dotnet:
|
build-dotnet:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, windows-latest, ubuntu-latest]
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||||
needs: [build-rust-bins]
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Print dotnet version
|
- name: Print dotnet version
|
||||||
run: dotnet --info
|
run: dotnet --info
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Build .NET
|
||||||
|
run: dotnet build -c Release
|
||||||
|
- name: Upload Build Artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: dotnet-${{ matrix.os }}
|
||||||
|
path: build/**
|
||||||
|
|
||||||
|
test-dotnet:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||||
|
needs: [build-rust-bins, build-dotnet]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -101,23 +118,20 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Install dotnet-coverage
|
- name: Install dotnet-coverage
|
||||||
run: dotnet tool install -g dotnet-coverage
|
run: dotnet tool install -g dotnet-coverage
|
||||||
- name: Download Rust OSX
|
- name: Download Rust Artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: rust-macos-latest
|
name: rust-${{ matrix.os }}
|
||||||
path: src/Rust/target/release
|
path: src/Rust/target/release
|
||||||
- name: Download Rust Windows
|
- name: Download Dotnet Artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: rust-windows-latest
|
name: dotnet-${{ matrix.os }}
|
||||||
path: src/Rust/target/release
|
path: build
|
||||||
- name: Download Rust Linux
|
- name: Delete Dotnet Artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: geekyeggo/delete-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: rust-ubuntu-latest
|
name: dotnet-${{ matrix.os }}
|
||||||
path: src/Rust/target/release
|
|
||||||
- name: Build .NET
|
|
||||||
run: dotnet build -c Release
|
|
||||||
- name: Test .NET Velopack.Tests
|
- name: Test .NET Velopack.Tests
|
||||||
run: dotnet test --no-build -c Release -l "console;verbosity=detailed" test/Velopack.Tests/Velopack.Tests.csproj
|
run: dotnet test --no-build -c Release -l "console;verbosity=detailed" test/Velopack.Tests/Velopack.Tests.csproj
|
||||||
- name: Test .NET Velopack.Packaging.Tests
|
- name: Test .NET Velopack.Packaging.Tests
|
||||||
|
|||||||
Reference in New Issue
Block a user