-
Notifications
You must be signed in to change notification settings - Fork 10
82 lines (79 loc) · 2.99 KB
/
build_debug.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: Build Debug
on:
push:
pull_request:
jobs:
build-lin-win:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install build-essential gcc-multilib g++-multilib mingw-w64 libgl1-mesa-dev libglu1-mesa-dev libx11-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qt5-qmake libasound2-dev libportaudio2 libpulse-dev ffmpeg libxcursor-dev
- name: Restore libacfutils dep cache
id: restore_libacfutils_dep_cache
uses: actions/cache/restore@v3
with:
path: |
src/libacfutils/zlib
src/libacfutils/libiconv
src/libacfutils/libclipboard
src/libacfutils/libpng
src/libacfutils/libjpeg
src/libacfutils/libxml2
src/libacfutils/freetype
src/libacfutils/cairo
src/libacfutils/opus
src/libacfutils/ssl
src/libacfutils/curl
src/libacfutils/shapelib
src/libacfutils/ocr
src/libacfutils/pcre2
src/libacfutils/glew
src/libacfutils/openal_soft
src/libacfutils/cglm
src/libacfutils/geographiclib
src/libacfutils/lzma
key: ${{ runner.os }}-${{ hashFiles('src/libacfutils/build_*','src/libacfutils/**/build_*','src/libacfutils/**/*.tar.*','src/libacfutils/**/*.patch', 'src/libacfutils/lzma/C/7zVersion.h' ) }}
- name: Build libacfutils dep
run: 'cd src/libacfutils && chmod +x build_deps &&./build_deps'
- name: Build libacfutils redist
run: 'cd src/libacfutils && chmod +x build_redist && ./build_redist'
- name: Build
run: 'chmod +x build_release && ./build_release'
- name: Archive files
run: zip -r BetterPushBack_lin_win.zip BetterPushback
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: BetterPushBack_lin_win.zip
path: BetterPushBack_lin_win.zip
- name: Save libacfutils dep cache
id: save_libacfutils_dep_cache
uses: actions/cache/save@v3
with:
path: |
src/libacfutils/zlib
src/libacfutils/libiconv
src/libacfutils/libclipboard
src/libacfutils/libpng
src/libacfutils/libjpeg
src/libacfutils/libxml2
src/libacfutils/freetype
src/libacfutils/cairo
src/libacfutils/opus
src/libacfutils/ssl
src/libacfutils/curl
src/libacfutils/shapelib
src/libacfutils/ocr
src/libacfutils/pcre2
src/libacfutils/glew
src/libacfutils/openal_soft
src/libacfutils/cglm
src/libacfutils/geographiclib
src/libacfutils/lzma
key: ${{ steps.restore_libacfutils_dep_cache.outputs.cache-primary-key }}