CI: Run LMMS #38
This file contains hidden or 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: run-help | |
| 'on': [push, pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| help-linux: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - arch: 'x86_64' | |
| runner: 'ubuntu-latest' | |
| suffix: '' | |
| - arch: 'arm64' | |
| runner: 'ubuntu-24.04-arm' | |
| suffix: '-arm64' | |
| name: help-linux-${{ matrix.config.arch }} | |
| runs-on: ${{ matrix.config.runner }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Extract artifact | |
| uses: ./.github/actions/extract-artifact | |
| with: | |
| check-name: linux-${{ matrix.config.arch }} | |
| artifact-name: linux${{ matrix.config.suffix }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Display help | |
| run: | | |
| cd squashfs-root/ | |
| ./AppRun --help | grep "Usage: lmms" | |
| help-macos: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - arch: 'x86_64' | |
| runner: 'macos-latest' | |
| - arch: 'arm64' | |
| runner: 'macos-latest' | |
| name: help-macos-${{ matrix.config.arch }} | |
| runs-on: ${{ matrix.config.runner }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Extract artifact | |
| uses: ./.github/actions/extract-artifact | |
| with: | |
| check-name: macos-${{ matrix.config.arch }} | |
| artifact-name: macos-${{ matrix.config.arch }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Display help | |
| run: | | |
| /tmp/LMMS.app/Contents/MacOS/lmms --help | grep "Usage: lmms" | |
| # Windows (does not work due to actions/extract-artifact issues) | |
| # - name: Display help | |
| # run: > | |
| # $result = & "${env:ProgramFiles${{ matrix.config.programfiles-suffix }}}/LMMS/lmms.exe" "--help" | | |
| # Select-String "Usage: lmms"; | |
| # if($result.Matches.Count -eq 0) { exit 1 } |