-
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.62 KB
/
test.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
name: Verify Configuration
on:
# Allows workflow to be manually triggered.
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
type: choice
options: [info, warning, debug]
default: "warning"
jobs:
build:
strategy:
fail-fast: false
matrix:
build: [
{ name: "modm8.exe", platform: "windows/amd64", os: "windows-latest" },
{ name: "modm8", platform: "linux/amd64", os: "ubuntu-latest" },
{ name: "modm8", platform: "darwin/universal", os: "macos-latest" }
]
runs-on: ${{ matrix.build.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Verify 'wails.json' file exists.
shell: bash
run: |
if [ ! -f ./wails.json ]; then
echo -e "\033[31mError: wails.json not found in the root directory!"
exit 1
fi
- name: Read properties.
shell: bash
run: |
PROJ_NAME=$(jq -r '.name' ./wails.json)
if [ -z "$PROJ_NAME" ]; then
echo -e "\033[31mError: key `name` empty or not found in wails.json!"
exit 1
fi
echo -e "\033[32mProject name is '$PROJ_NAME'"
OUTPUT_NAME=$(jq -r '.outputfilename' ./wails.json)
if [ -z "$OUTPUT_NAME" ]; then
echo -e "\033[31mError: key `outputfilename` empty or not found in wails.json!"
exit 1
fi
echo -e "\033[32mOutput file (binary) name is '$OUTPUT_NAME'"