-
-
Notifications
You must be signed in to change notification settings - Fork 143
82 lines (68 loc) · 2.53 KB
/
build.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
name: REDasm-Builds
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
linux:
runs-on: ubuntu-20.04
name: Linux (Ubuntu 20.04 LTS)
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo add-apt-repository ppa:beineri/opt-qt-5.15.0-focal
sudo apt-get update
sudo apt-get install -y build-essential gcc-10 g++-10 qt515base qt515x11extras cmake
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
git submodule update --init --recursive
- name: Build
shell: bash
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4
make install DESTDIR=$PWD/AppDir
- name: Prepare AppImage
shell: bash
run: |
cd build
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
chmod +x linuxdeploy*.AppImage
mkdir -p AppDir/usr/share/applications
mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps
cp ../REDasm.desktop AppDir/usr/share/applications/
cp ../res/logo.png AppDir/usr/share/icons/hicolor/256x256/apps/redasm.png
- name: Generate AppImage
run: |
cd build
LD_LIBRARY_PATH=$PWD/AppDir/usr/lib/x86_64-linux-gnu ./linuxdeploy-x86_64.AppImage --appdir=AppDir --plugin qt --output appimage
mv REDasm-*.AppImage REDasm_Linux_AMD64_`date +%Y%m%d`.AppImage
- name: Upload AppImage
uses: actions/upload-artifact@v2
with:
name: Linux (AppImage)
path: build/REDasm*.AppImage
if-no-files-found: error
windows:
runs-on: windows-latest
name: Windows
steps:
- uses: actions/checkout@v2
- name: Install Qt
uses: jurplel/[email protected]
- name: Build
run: |
git submodule update --init --recursive
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . -j4 --config Release
cmake --build . --target REDasmDeploy
- name: Deploy
uses: actions/upload-artifact@v2
with:
name: Windows (Portable)
path: build/deploy
if-no-files-found: error