CI: Run LMMS #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
name: build | ||
'on': [push, pull_request] | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
run-help-linux: | ||
needs: linux | ||
name: linux | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/lmms/linux.gcc:20.04 | ||
steps: | ||
- name: Display help | ||
run: | | ||
install/bin/lmms --help | grep "Usage: lmms" | ||
run-help-macos: | ||
needs: macos | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: [ x86_64, arm64 ] | ||
name: macos-${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
MAKEFLAGS: -j3 | ||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | ||
steps: | ||
- name: Display help | ||
run: > | ||
build/LMMS.app/Contents/MacOS/lmms --help | grep "Usage: lmms" | ||
- name: Display version | ||
run: build/LMMS.app/Contents/MacOS/lmms --version | grep "Copyright (c) .* LMMS Developers" | ||
run-help-mingw: | ||
needs: mingw | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: ['32', '64'] | ||
name: mingw${{ matrix.arch }} | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/lmms/linux.mingw:20.04 | ||
steps: | ||
- name: Display help | ||
run: > | ||
WINEPREFIX=/tmp/lmms-wineprefix | ||
wine "build/install/lmms.exe" --help | | ||
grep "Usage: lmms" | ||
run-help-msvc: | ||
needs: msvc | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: ['x86', 'x64'] | ||
name: msvc-${{ matrix.arch }} | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Display help | ||
run: > | ||
$result = & "build/install/lmms.exe" "--help" | | ||
Select-String "Usage: lmms"; | ||
if($result.Matches.Count -eq 0) { exit 1 } |