spotify-dl/.github/workflows/macos.yml
2024-05-11 00:23:08 +02:00

47 lines
No EOL
1.1 KiB
YAML

name: Release - MacOS
on:
push:
tags:
- '*'
env:
CARGO_TERM_COLOR: always
permissions:
contents: write
jobs:
build:
runs-on: macos-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: Compress binary
run: |
tar -czvf target/release/spotify-dl.macos.tar.gz target/release/spotify-dl
- name: SHA 256
run: |
shasum -a 256 target/release/spotify-dl.macos.tar.gz
- name: Rename binary
run: |
mv target/release/spotify-dl target/release/spotify-dl.macos
- name: Upload MacOS Artifact
uses: ncipollo/release-action@v1
with:
allowUpdates: True
makeLatest: True
omitBody: True
omitBodyDuringUpdate: True
omitNameDuringUpdate: True
artifacts: target/release/spotify-dl.macos, target/release/spotify-dl.macos.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}