Skip to content

Commit af05cc5

Browse files
committed
ci: build for windows 7
1 parent 2f0a335 commit af05cc5

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.github/workflows/build.yml

+23-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ jobs:
8686
- name: Install nightly Rust
8787
uses: dtolnay/rust-toolchain@master
8888
with:
89-
toolchain: nightly-2024-01-15 # pinned because it seems like there's a segfault on nightly
90-
override: true
89+
toolchain: nightly
9190
targets: aarch64-pc-windows-msvc
9291
- name: Build dynamic library
9392
run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target aarch64-pc-windows-msvc
@@ -96,3 +95,25 @@ jobs:
9695
with:
9796
name: ${{ format('librashader-aarch64-windows-{0}-{1}', github.sha, matrix.profile) }}
9897
path: ${{ format('target/aarch64-pc-windows-msvc/{0}/librashader.*', matrix.profile) }}
98+
build-windows-7:
99+
strategy:
100+
matrix:
101+
profile: ['debug', 'release', 'optimized']
102+
fail-fast: false
103+
runs-on: windows-latest
104+
name: x86_64-win7-windows
105+
steps:
106+
- name: Checkout repository
107+
uses: actions/checkout@v4
108+
- name: Install nightly Rust
109+
uses: dtolnay/rust-toolchain@master
110+
with:
111+
toolchain: nightly
112+
components: rust-src
113+
- name: Build dynamic library
114+
run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target x86_64-win7-windows-msvc -- -Zbuild-std
115+
- name: Upload build artifacts
116+
uses: actions/[email protected]
117+
with:
118+
name: ${{ format('librashader-x86_64-win7-windows-{0}-{1}', github.sha, matrix.profile) }}
119+
path: ${{ format('target/x86_64-win7-windows-msvc/{0}/librashader.*', matrix.profile) }}

librashader-cache/Cargo.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ serde = { version = "1.0" }
1515
librashader-reflect = { path = "../librashader-reflect", version = "0.3.1", features = ["serialize"] }
1616
librashader-preprocess = { path = "../librashader-preprocess", version = "0.3.1" }
1717
platform-dirs = "0.3.0"
18-
blake3 = { version = "1.3.3" }
18+
blake3 = { version = "1.5.4" }
1919
thiserror = "1.0.38"
2020
bincode = { version = "2.0.0-rc.2", features = ["serde"] }
2121
persy = "1.4.7"
2222

2323
bytemuck = "1.13.0"
2424

25+
[target.x86_64-win7-windows-msvc.dependencies.blake3]
26+
version = "1.5.4"
27+
features = ["pure"]
28+
2529
[target.'cfg(windows)'.dependencies.windows]
2630
workspace = true
2731
features = [

0 commit comments

Comments
 (0)