mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Compile rust with windows 7 compatible toolchain
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -46,9 +46,13 @@ jobs:
|
||||
with:
|
||||
key: "rust-build-windows"
|
||||
workspaces: "src/Rust -> target"
|
||||
- name: Install Windows7 Rust Toolchain
|
||||
run: |
|
||||
rustup toolchain install 1.75.0-x86_64-pc-windows-msvc
|
||||
rustup target add i686-pc-windows-msvc --toolchain 1.75.0-x86_64-pc-windows-msvc
|
||||
- name: Build Rust
|
||||
working-directory: src/Rust
|
||||
run: cargo bw86 --release
|
||||
run: cargo +1.75.0-x86_64-pc-windows-msvc build --target i686-pc-windows-msvc --features windows --release
|
||||
- name: Upload Rust Build Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
@@ -39,7 +39,7 @@ lto = true # link-time optimization
|
||||
debug = false # disable debug info
|
||||
debug-assertions = false # disable debug assertions
|
||||
overflow-checks = false # disable overflow checks
|
||||
# panic = "abort" # abort on panic
|
||||
panic = "abort" # abort on panic
|
||||
incremental = false # disable incremental compilation
|
||||
codegen-units = 1 # compile all code into a single unit
|
||||
rpath = false # disable rpath
|
||||
|
||||
@@ -30,7 +30,7 @@ fn main() {
|
||||
.set("ProductName", "Velopack")
|
||||
.set("ProductVersion", version)
|
||||
.set("FileDescription", &desc)
|
||||
.set("LegalCopyright", "Caelan Sayler (c) 2023, Velopack (c) 2024")
|
||||
.set("LegalCopyright", "Caelan Sayler (c) 2023, Velopack Ltd. (c) 2024")
|
||||
.compile()
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user