Files
ncmprs/.github/workflows/build.yml
T
Workflow config file is invalid. Please check your config file: resolve aliases: yaml: line 51: mapping values are not allowed in this context
2026-07-18 13:13:19 +02:00

56 lines
1.1 KiB
YAML

name: Build
# on:
# push:
# pull_request:
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
exe: ncmprs
- os: windows-latest
target: x86_64-pc-windows-msvc
exe: 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 }}
# - uses: actions/upload-artifact@v4
# with:
# name: ${{ matrix.target }}
# path: target/${{ matrix.target }}/release/${{ matrix.exe }}
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
target/${{ matrix.target }}/release/${{ matrix.exe }}