Add windows support for cicd
This commit is contained in:
@@ -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
|
||||
name: yt-offline-${{ matrix.os }}
|
||||
path: ${{ matrix.binary_path }}
|
||||
Reference in New Issue
Block a user