Compile rust with windows 7 compatible toolchain

This commit is contained in:
Caelan Sayler
2024-06-10 21:37:32 +01:00
parent 298084655b
commit 32e7d81621
3 changed files with 7 additions and 3 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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();
} }