-
Notifications
You must be signed in to change notification settings - Fork 8
121 lines (104 loc) · 3.17 KB
/
main.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# This is a basic workflow to help you get started with Actions
name: CI
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ master ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-windows:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected]
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
path-type: minimal
update: true
install: >-
mingw-w64-x86_64-qt5-static
mingw-w64-x86_64-gcc
mingw-w64-x86_64-make
mingw-w64-x86_64-openssl
make
zip
- shell: msys2 {0}
run: |
export PATH="/mingw64/bin:$PATH"
export PATH="/mingw64/qt5-static/bin:$PATH"
cd src
mkdir build
cd build
qmake ..
make
make clean
zip dsda-launcher-win64-dev.zip dsda-launcher.exe
- uses: actions/upload-artifact@v4
with:
name: windows
path: src\build\dsda-launcher-win64-dev.zip
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install Qt
uses: jurplel/[email protected]
with:
aqtversion: '==3.1.*'
version: '6.6.0'
host: 'linux'
target: 'desktop'
arch: 'gcc_64'
tools: 'tools_opensslv3_src'
- name: build
run: |
sudo apt install libfuse2
cd src
mkdir build
cd build
qmake ..
make
# make clean
# wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
# chmod a+x linuxdeployqt-continuous-x86_64.AppImage
# ./linuxdeployqt-continuous-x86_64.AppImage ./dsda-launcher -unsupported-allow-new-glibc
- uses: actions/upload-artifact@v4
with:
name: linux
path: src/build
build-macos:
runs-on: macos-latest
steps:
- uses: actions/[email protected]
- name: Install Qt
uses: jurplel/[email protected]
with:
aqtversion: '==3.1.*'
version: '6.6.0'
host: 'mac'
target: 'desktop'
arch: 'clang_64'
- name: build
run: |
cd src
mkdir build
cd build
qmake .. "CONFIG+=macdeploy"
make
make clean
ls
macdeployqt ./dsda-launcher.app
- uses: actions/upload-artifact@v4
with:
name: mac
path: src/build/