From 1f67b5010cf1d59500b21be0342f0fad248872c9 Mon Sep 17 00:00:00 2001 From: Lyra Date: Wed, 16 Sep 2026 23:26:59 -0400 Subject: [PATCH] Add windows support for cicd --- .gitea/workflows/build.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 4f3c1e1..c8d7e21 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -2,8 +2,17 @@ on: [ push, pull_request ] jobs: build: - name: Build Release Binary - runs-on: ubuntu-latest + name: Build Release Binary (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + include: + - os: ubuntu-latest + binary_path: target/release/yt-offline + - os: windows-latest + binary_path: target/release/yt-offline.exe + steps: - name: Install Rust Toolchain uses: actions-rust-lang/setup-rust-toolchain@v2 @@ -27,5 +36,5 @@ jobs: - name: Upload binary artifact uses: actions/upload-artifact@v3 with: - name: yt-offline - path: target/release/yt-offline \ No newline at end of file + name: yt-offline-${{ matrix.os }} + path: ${{ matrix.binary_path }} \ No newline at end of file