From af05cc5bd84b355e5127e83e54c13324a921fa34 Mon Sep 17 00:00:00 2001 From: chyyran Date: Wed, 21 Aug 2024 01:26:34 -0400 Subject: [PATCH] ci: build for windows 7 --- .github/workflows/build.yml | 25 +++++++++++++++++++++++-- librashader-cache/Cargo.toml | 6 +++++- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3673d7d..7fcb63a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -86,8 +86,7 @@ jobs: - name: Install nightly Rust uses: dtolnay/rust-toolchain@master with: - toolchain: nightly-2024-01-15 # pinned because it seems like there's a segfault on nightly - override: true + toolchain: nightly targets: aarch64-pc-windows-msvc - name: Build dynamic library run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target aarch64-pc-windows-msvc @@ -96,3 +95,25 @@ jobs: with: name: ${{ format('librashader-aarch64-windows-{0}-{1}', github.sha, matrix.profile) }} path: ${{ format('target/aarch64-pc-windows-msvc/{0}/librashader.*', matrix.profile) }} + build-windows-7: + strategy: + matrix: + profile: ['debug', 'release', 'optimized'] + fail-fast: false + runs-on: windows-latest + name: x86_64-win7-windows + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install nightly Rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: nightly + components: rust-src + - name: Build dynamic library + run: cargo run -p librashader-build-script -- --profile ${{ matrix.profile }} --target x86_64-win7-windows-msvc -- -Zbuild-std + - name: Upload build artifacts + uses: actions/upload-artifact@v3.1.2 + with: + name: ${{ format('librashader-x86_64-win7-windows-{0}-{1}', github.sha, matrix.profile) }} + path: ${{ format('target/x86_64-win7-windows-msvc/{0}/librashader.*', matrix.profile) }} diff --git a/librashader-cache/Cargo.toml b/librashader-cache/Cargo.toml index 8cb8076..c376f71 100644 --- a/librashader-cache/Cargo.toml +++ b/librashader-cache/Cargo.toml @@ -15,13 +15,17 @@ serde = { version = "1.0" } librashader-reflect = { path = "../librashader-reflect", version = "0.3.1", features = ["serialize"] } librashader-preprocess = { path = "../librashader-preprocess", version = "0.3.1" } platform-dirs = "0.3.0" -blake3 = { version = "1.3.3" } +blake3 = { version = "1.5.4" } thiserror = "1.0.38" bincode = { version = "2.0.0-rc.2", features = ["serde"] } persy = "1.4.7" bytemuck = "1.13.0" +[target.x86_64-win7-windows-msvc.dependencies.blake3] +version = "1.5.4" +features = ["pure"] + [target.'cfg(windows)'.dependencies.windows] workspace = true features = [