From e42710aebfc22ccb97274f2851557c3f8fc19294 Mon Sep 17 00:00:00 2001 From: HEnquist Date: Sat, 19 Oct 2024 22:08:09 +0200 Subject: [PATCH] Add build with rust 1.75 to keep win7 compatibility --- .github/workflows/ci_test.yml | 16 ++++++++++++++++ .github/workflows/publish.yml | 23 +++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index 929f0dd2..3135dcb7 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -142,6 +142,22 @@ jobs: - name: Run cargo test run: cargo test --no-default-features + check_test_windows7: + name: Check and test Windows7 (rustc 1.75) + runs-on: windows-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Install stable toolchain + uses: dtolnay/rust-toolchain@1.75.0 + + - name: Run cargo check + run: cargo check --no-default-features + + - name: Run cargo test + run: cargo test --no-default-features + check_test_macos: name: Check and test macOS runs-on: macos-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 27bf859c..a94744f9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -168,6 +168,29 @@ jobs: asset_name: camilladsp-windows-amd64.zip tag: ${{ github.ref }} + windows7: + name: Windows7 + runs-on: windows-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Install stable toolchain + uses: dtolnay/rust-toolchain@1.75.0 + + - name: Build + run: cargo build --release + + - name: Compress + run: powershell Compress-Archive target/release/camilladsp.exe camilladsp.zip + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: camilladsp.zip + asset_name: camilladsp-windows7-amd64.zip + tag: ${{ github.ref }} macos: name: macOS runs-on: macos-latest