Skip to content

Commit

Permalink
Windows 7 (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mothblocks authored Jul 21, 2024
1 parent c0eb135 commit 0de97f9
Show file tree
Hide file tree
Showing 9 changed files with 266 additions and 773 deletions.
3 changes: 3 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.i686-win7-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]

[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@nightly
with:
targets: i686-pc-windows-msvc
components: rustfmt, clippy
targets: i686-pc-windows-msvc # Used for clippy, since it doesn't need to build the entire std
components: rustfmt, clippy, rust-src

- uses: Swatinem/rust-cache@v2

Expand All @@ -26,14 +26,14 @@ jobs:
run: cargo fmt -- --check

- name: Build (release) (default features)
run: cargo build --target i686-pc-windows-msvc --locked --release
run: cargo build -Z build-std --target i686-win7-windows-msvc --locked --release

- uses: actions/upload-artifact@v4
with:
name: Windows Build
path: |
target/i686-pc-windows-msvc/release/rust_g.dll
target/i686-pc-windows-msvc/release/rust_g.pdb
target/i686-win7-windows-msvc/release/rust_g.dll
target/i686-win7-windows-msvc/release/rust_g.pdb
target/rust_g.dm
build-linux:
Expand Down
Loading

0 comments on commit 0de97f9

Please sign in to comment.