mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
name: Build Squirrel
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup .NET 6
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 6.0.x
|
|
|
|
- name: Setup .NET 8
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Install Rust
|
|
run: rustup update stable
|
|
|
|
- name: Install cargo-llvm-cov
|
|
uses: taiki-e/install-action@cargo-llvm-cov
|
|
|
|
- name: Build Rust
|
|
working-directory: src/Rust
|
|
run: |
|
|
cargo build
|
|
cargo build --release
|
|
|
|
- name: Test Rust
|
|
working-directory: src/Rust
|
|
run: cargo llvm-cov --codecov --output-path ../../test/codecov-rust.json
|
|
|
|
- name: Build .NET
|
|
run: dotnet build -c Release
|
|
|
|
- name: Test .NET
|
|
run: dotnet test -c Release --no-build -l "console;verbosity=detailed"
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
files: ./test/codecov-rust.json,./test/coverage.opencover.xml
|
|
fail_ci_if_error: true
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: packages
|
|
path: .\build\Release\*.nupkg
|
|
|
|
- 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
|