Move nbgv script and stop checking for delta feature

This commit is contained in:
Caelan Sayler
2025-05-18 14:49:50 +01:00
committed by Caelan
parent d6b117964b
commit 1d29cf0214
2 changed files with 6 additions and 6 deletions

22
.github/set-nbgv-version.ps1 vendored Normal file
View File

@@ -0,0 +1,22 @@
param(
[string]$version = $(nbgv get-version -v NuGetPackageVersion).Trim()
)
$scriptDir = "$PSScriptRoot/.."
$path = Join-Path $scriptDir "Cargo.toml"
Write-Host "Setting version to $version"
(Get-Content $path) | ForEach-Object {
if ($_ -match '^version\s*=\s*".*"') {
$_ -replace '^version\s*=\s*".*"', "version = `"$version`""
}
else {
$_
}
} | Set-Content $path
Set-Location "$scriptDir/src/lib-nodejs"
npm version $version --no-git-tag-version
Copy-Item -Path "$scriptDir/README_NUGET.md" -Destination "$scriptDir/src/lib-nodejs/README.md" -Force
Copy-Item -Path "$scriptDir/README_NUGET.md" -Destination "$scriptDir/src/lib-rust/README.md" -Force

View File

@@ -34,7 +34,7 @@ jobs:
rustup target add aarch64-pc-windows-msvc --toolchain 1.75.0-x86_64-pc-windows-msvc
- name: Update Version
shell: pwsh
run: .\set-nbgv-version.ps1
run: ./.github/set-nbgv-version.ps1
- name: Build Rust Binaries
run: cargo +1.75.0-x86_64-pc-windows-msvc build --target i686-pc-windows-msvc --features windows --release -p velopack_bins
- name: Upload Rust Build Artifacts
@@ -95,7 +95,7 @@ jobs:
sudo apt install -y g++-aarch64-linux-gnu gcc-aarch64-linux-gnu
- name: Update Version
shell: pwsh
run: ./set-nbgv-version.ps1
run: ./.github/set-nbgv-version.ps1
- name: Build Rust (x64)
run: |
cargo build --release --target x86_64-unknown-linux-gnu
@@ -140,7 +140,7 @@ jobs:
dotnet tool update -g nbgv
- name: Update Version
shell: pwsh
run: ./set-nbgv-version.ps1
run: ./.github/set-nbgv-version.ps1
- name: Build Rust (x64)
run: |
cargo build --release --target x86_64-apple-darwin
@@ -191,7 +191,7 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Check lib-rust
run: cargo check -p velopack -F async,delta
run: cargo check -p velopack -F async
- name: Check lib-nodejs
working-directory: src/lib-nodejs
run: |
@@ -316,7 +316,7 @@ jobs:
setAllVars: true
- name: Update Version
shell: pwsh
run: ./set-nbgv-version.ps1
run: ./.github/set-nbgv-version.ps1
- name: Download Rust Artifacts
uses: actions/download-artifact@v4
with: