This commit is contained in:
2026-07-26 11:03:56 +02:00
parent dd9aab94f0
commit afe2e6d375
2 changed files with 97 additions and 82 deletions
+45
View File
@@ -0,0 +1,45 @@
name: Build and Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
binary: ncmprs
- os: windows-latest
target: x86_64-pc-windows-msvc
binary: ncmprs.exe
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev pkg-config
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Upload to Release
uses: softprops/action-gh-release@v2
with:
files: target/${{ matrix.target }}/release/${{ matrix.binary }}