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:
|
with:
|
||||||
key: "rust-build-windows"
|
key: "rust-build-windows"
|
||||||
workspaces: "src/Rust -> target"
|
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
|
- name: Build Rust
|
||||||
working-directory: src/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
|
- name: Upload Rust Build Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ lto = true # link-time optimization
|
|||||||
debug = false # disable debug info
|
debug = false # disable debug info
|
||||||
debug-assertions = false # disable debug assertions
|
debug-assertions = false # disable debug assertions
|
||||||
overflow-checks = false # disable overflow checks
|
overflow-checks = false # disable overflow checks
|
||||||
# panic = "abort" # abort on panic
|
panic = "abort" # abort on panic
|
||||||
incremental = false # disable incremental compilation
|
incremental = false # disable incremental compilation
|
||||||
codegen-units = 1 # compile all code into a single unit
|
codegen-units = 1 # compile all code into a single unit
|
||||||
rpath = false # disable rpath
|
rpath = false # disable rpath
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ fn main() {
|
|||||||
.set("ProductName", "Velopack")
|
.set("ProductName", "Velopack")
|
||||||
.set("ProductVersion", version)
|
.set("ProductVersion", version)
|
||||||
.set("FileDescription", &desc)
|
.set("FileDescription", &desc)
|
||||||
.set("LegalCopyright", "Caelan Sayler (c) 2023, Velopack (c) 2024")
|
.set("LegalCopyright", "Caelan Sayler (c) 2023, Velopack Ltd. (c) 2024")
|
||||||
.compile()
|
.compile()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user