mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Move nbgv script and stop checking for delta feature
This commit is contained in:
22
.github/set-nbgv-version.ps1
vendored
Normal file
22
.github/set-nbgv-version.ps1
vendored
Normal 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
|
||||
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user