workflow fix

This commit is contained in:
nicknase27
2026-07-17 12:53:55 +02:00
parent 81be97b665
commit 89fb83d60c
+10 -11
View File
@@ -2,26 +2,20 @@ name: Build
on: on:
push: push:
branches: [master]
pull_request: pull_request:
jobs: jobs:
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev pkg-config
build: build:
strategy: strategy:
matrix: matrix:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
binary: ncmprs exe: ncmprs
- os: windows-latest - os: windows-latest
target: x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc
binary: ncmprs.exe exe: ncmprs.exe
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@@ -32,11 +26,16 @@ jobs:
with: with:
targets: ${{ matrix.target }} targets: ${{ matrix.target }}
# - uses: Swatinem/rust-cache@v2 - name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev pkg-config
- run: cargo build --release --target ${{ matrix.target }} - name: Build
run: cargo build --release --target ${{ matrix.target }}
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: ${{ matrix.target }} name: ${{ matrix.target }}
path: target/${{ matrix.target }}/release/${{ matrix.binary }} path: target/${{ matrix.target }}/release/${{ matrix.exe }}