mirror of
https://github.com/GuillemCastro/spotify-dl.git
synced 2024-11-10 05:20:25 +01:00
45 lines
980 B
YAML
45 lines
980 B
YAML
|
name: Build latest - Windows
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
env:
|
||
|
CARGO_TERM_COLOR: always
|
||
|
|
||
|
permissions:
|
||
|
contents: write
|
||
|
|
||
|
jobs:
|
||
|
|
||
|
build:
|
||
|
runs-on: windows-latest
|
||
|
strategy:
|
||
|
fail-fast: false
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: Setup cmake
|
||
|
uses: jwlawson/actions-setup-cmake@v1.13
|
||
|
- name: install Rust stable
|
||
|
uses: dtolnay/rust-toolchain@stable
|
||
|
- name: Build
|
||
|
run: |
|
||
|
cargo build --verbose --release
|
||
|
- name: Rename binary
|
||
|
run: |
|
||
|
mv target/release/spotify-dl.exe target/release/spotify-dl.windows-x86_64
|
||
|
- name: Upload Windows Artifact
|
||
|
uses: ncipollo/release-action@v1
|
||
|
with:
|
||
|
allowUpdates: True
|
||
|
makeLatest: True
|
||
|
omitBody: True
|
||
|
omitBodyDuringUpdate: True
|
||
|
omitNameDuringUpdate: True
|
||
|
artifacts: target/release/spotify-dl.windows-x86_64
|
||
|
token: ${{ secrets.GITHUB_TOKEN }}
|