2024-05-11 00:04:16 +02:00
|
|
|
name: Release - Linux
|
2024-05-10 23:13:52 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-05-10 23:23:01 +02:00
|
|
|
tags:
|
|
|
|
- '*'
|
2024-05-10 23:13:52 +02:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-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: Setup alsa
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install -y libasound2-dev gcc alsa
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
cargo build --verbose --release
|
|
|
|
- name: Rename binary
|
|
|
|
run: |
|
|
|
|
mv target/release/spotify-dl target/release/spotify-dl.linux-x86_64
|
|
|
|
- name: Upload Linux Artifact
|
|
|
|
uses: ncipollo/release-action@v1
|
|
|
|
with:
|
|
|
|
allowUpdates: True
|
|
|
|
makeLatest: True
|
|
|
|
omitBody: True
|
|
|
|
omitBodyDuringUpdate: True
|
|
|
|
omitNameDuringUpdate: True
|
|
|
|
artifacts: target/release/spotify-dl.linux-x86_64
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|