-
-
Notifications
You must be signed in to change notification settings - Fork 1k
93 lines (93 loc) · 2.85 KB
/
run-help.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
name: run-help
'on': [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
help-linux:
name: help-linux
runs-on: ubuntu-latest
container: ghcr.io/lmms/linux.gcc:20.04
steps:
- name: wait for build
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
check-name: 'linux'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
- name: Download workflow artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
name: linux
- name: ls
run: ls -lhart
- name: Make artifact executable
run: chmod +x lmms-*.AppImage
- name: Display help
run: |
lmms-*.AppImage --help | grep "Usage: lmms"
help-macos:
strategy:
fail-fast: false
matrix:
arch: [ x86_64, arm64 ]
name: help-macos-${{ matrix.arch }}
runs-on: ${{ matrix.os }}
env:
MAKEFLAGS: -j3
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: wait for build
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
check-name: macos-${{ matrix.arch }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
- name: Display help
run: >
build/LMMS.app/Contents/MacOS/lmms --help | grep "Usage: lmms"
help-mingw:
strategy:
fail-fast: false
matrix:
arch: ['32', '64']
name: help-mingw${{ matrix.arch }}
runs-on: ubuntu-latest
container: ghcr.io/lmms/linux.mingw:20.04
steps:
- name: wait for build
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
check-name: mingw${{ matrix.arch }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
- name: Display help
run: >
WINEPREFIX=/tmp/lmms-wineprefix
wine "build/install/lmms.exe" --help |
grep "Usage: lmms"
help-msvc:
strategy:
fail-fast: false
matrix:
arch: ['x86', 'x64']
name: help-msvc-${{ matrix.arch }}
runs-on: windows-2019
steps:
- name: wait for build
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
check-name: msvc-${{ matrix.arch }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
- name: Display help
run: >
$result = & "build/install/lmms.exe" "--help" |
Select-String "Usage: lmms";
if($result.Matches.Count -eq 0) { exit 1 }