This commit is contained in:
nicknase27
2026-07-17 12:49:42 +02:00
parent 3c2fa4012f
commit 827120b5d0
+37
View File
@@ -0,0 +1,37 @@
name: Build
on:
push:
branches: [master]
pull_request:
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 }}
- uses: Swatinem/rust-cache@v2
- run: cargo build --release --target ${{ matrix.target }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: target/${{ matrix.target }}/release/${{ matrix.binary }}