forked from jingkaimori/midieditor
-
-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (56 loc) · 1.86 KB
/
xmake.yaml
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
name: Build with xmake on windows
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: windows-latest
steps:
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.8.1'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2022_64'
modules: 'qtmultimedia'
- uses: jmarrec/setup-qtifw@v1
with:
qtifw-version: '4.x'
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Build
run: |
xmake config --yes
xmake build --jobs=2
- name: Copy Files
shell: pwsh
run: |
mkdir ./packaging/org.midieditor.midieditor/data/
cp ./bin/ProMidEdit.exe ./packaging/org.midieditor.midieditor/data/ProMidEdit.exe
windeployqt ./packaging/org.midieditor.midieditor/data/ProMidEdit.exe
mkdir ./packaging/org.midieditor.midieditor/data/metronome
cp ./run_environment/metronome/metronome-01.wav ./packaging/org.midieditor.midieditor/data/metronome
mkdir ./packaging/org.midieditor.manual/data/
cp -Recurse -Path ./manual/ -Destination ./packaging/org.midieditor.manual/data/
- name: Packaging
shell: cmd
run: |
binarycreator.exe --offline-only -c .\scripts\packaging\windows\config.xml -p .\packaging Install.exe
- name: List build contents
shell: cmd
run: |
echo "Listing packaging directory contents:"
dir /s packaging
echo "Listing build directory contents:"
dir /s build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ProMidEdit-Installer
path: packaging/Install.exe