Add windows support for cicd
This commit is contained in:
@@ -2,8 +2,17 @@ on: [ push, pull_request ]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Release Binary
|
name: Build Release Binary (${{ matrix.os }})
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- name: Install Rust Toolchain
|
- name: Install Rust Toolchain
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v2
|
uses: actions-rust-lang/setup-rust-toolchain@v2
|
||||||
@@ -27,5 +36,5 @@ jobs:
|
|||||||
- name: Upload binary artifact
|
- name: Upload binary artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: yt-offline
|
name: yt-offline-${{ matrix.os }}
|
||||||
path: target/release/yt-offline
|
path: ${{ matrix.binary_path }}
|
||||||
Reference in New Issue
Block a user