2022-06-08 17:04:48 +02:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2022-06-08 17:09:02 +02:00
|
|
|
- name: Install Dependencies
|
2022-06-08 17:31:14 +02:00
|
|
|
run: sudo apt install libflac-dev build-essential pkg-config alsa libasound2-dev
|
2022-06-08 17:04:48 +02:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose --release
|
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --verbose
|
|
|
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
|
with:
|
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
automatic_release_tag: "latest"
|
|
|
|
prerelease: true
|
|
|
|
title: "Latest Build"
|
|
|
|
files: |
|
|
|
|
LICENSE
|
|
|
|
target/release/spotify-dl
|