Skip to content

play song through sound source (make song faster) #184

play song through sound source (make song faster)

play song through sound source (make song faster) #184

Workflow file for this run

name: build
permissions:
contents: write
on:
issues:
types:
- closed
pull_request:
types:
- closed
push:
tags:
- "v*.*.*"
jobs:
release:
name: Release - ${{ matrix.platform.release_for }}
strategy:
matrix:
platform:
- release_for: Linux-Gnu-x86_64
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
bin: wavefront
name: wavefront-linux-gnu-x86_64.tar.gz
command: build
- release_for: Windows-x86_64
os: windows-latest
target: x86_64-pc-windows-msvc
bin: wavefront.exe
name: wavefront-windows-x86_64.zip
command: build
- release_for: macOS-x86_64
os: macOS-latest
target: x86_64-apple-darwin
bin: wavefront
name: wavefront-apple-darwin-x86_64.tar.gz
command: build
runs-on: ${{ matrix.platform.os }}
env:
RUSTFLAGS: "-Awarnings"
steps:
- uses: Swatinem/rust-cache@v2
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0 libwayland-dev libxkbcommon-dev libgtk-3-dev clang
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
command: ${{ matrix.platform.command }}
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true
toolchain: stable
- name: Package as archive
shell: bash
run: |
cd target/${{ matrix.platform.target }}/release
if [[ "${{ matrix.platform.os }}" == "windows-latest" ]]; then
7z a ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }} ../../../examples
else
tar czvf ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }} ../../../examples
fi
cd -
- name: Publish release artifacts
uses: actions/upload-artifact@v4
with:
name: "${{ matrix.platform.name }}"
path: "${{ matrix.platform.name }}"
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: "${{ matrix.platform.name }}"