-
Notifications
You must be signed in to change notification settings - Fork 3
142 lines (110 loc) · 4.43 KB
/
Ubuntu Dependencies.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
name: Ubuntu Dependencies Caching
on:
workflow_call:
workflow_dispatch:
defaults:
run:
shell: bash
env:
BUILD_TYPE: Release
jobs:
build_eigen:
runs-on: ubuntu-latest
steps:
- name: Eigen Cache
uses: actions/cache@v3
with:
path: builds/eigen
key: ${{ runner.os }}-cache-key-eigen
- run: wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
- run: tar -xzf eigen-3.4.0.tar.gz
- name: build
run: cmake -B "${{github.workspace}}/build" -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/builds/eigen" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
working-directory: eigen-3.4.0
- run: cmake --build "${{github.workspace}}/build"
working-directory: eigen-3.4.0
- run: cmake --install "${{github.workspace}}/build"
working-directory: eigen-3.4.0
build_lua:
runs-on: ubuntu-latest
steps:
- name: Lua Cache
uses: actions/cache@v3
with:
path: builds/lua
key: ${{ runner.os }}-cache-key-lua
- run: wget --no-check-certificate https://www.lua.org/ftp/lua-5.4.4.tar.gz
- run: tar -xzf lua-5.4.4.tar.gz
- working-directory: lua-5.4.4
run: make linux
- run: mkdir builds
- run: mv lua-5.4.4 builds/lua
- run: ls
- run: ls builds
- run: ls builds/lua
build_FFTW:
runs-on: ubuntu-latest
steps:
- name: FFTW Cache
uses: actions/cache@v3
with:
path: builds/fftw
key: ${{ runner.os }}-cache-key-fftw
- run: wget --no-check-certificate https://www.fftw.org/fftw-3.3.10.tar.gz
- run: tar -xzf fftw-3.3.10.tar.gz
- run: cmake -B "${{github.workspace}}/cmake_build" -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/builds/fftw" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_SHARED_LIBS=0
working-directory: fftw-3.3.10
- run: cmake --build "${{github.workspace}}/cmake_build" --config ${{env.BUILD_TYPE}}
working-directory: fftw-3.3.10
- run: cmake --install "${{github.workspace}}/cmake_build"
working-directory: fftw-3.3.10
build_zlib:
runs-on: ubuntu-latest
steps:
- name: Zlib Cache
uses: actions/cache@v3
with:
path: builds/zlib
key: ${{ runner.os }}-cache-key-zlib
- run: wget https://zlib.net/zlib-1.3.1.tar.gz
- run: tar -xzf zlib-1.3.1.tar.gz
- run: |
cd zlib-1.3.1
cmake -B ${{github.workspace}}/build -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/builds/zlib -DCMAKE_BUILD_TYPE=Release
cd ${{github.workspace}}/build
make
make install
build_libpng:
runs-on: ubuntu-latest
steps:
- name: Libpng Cache
uses: actions/cache@v3
with:
path: builds/libpng
key: ${{ runner.os }}-cache-key-libpng
- run: wget http://prdownloads.sourceforge.net/libpng/libpng-1.6.42.tar.gz
- run: tar -xzf libpng-1.6.42.tar.gz
- run: |
cd libpng-1.6.42
cmake -B ${{github.workspace}}/build/ -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/builds/libpng -DCMAKE_BUILD_TYPE=Release
cd ${{github.workspace}}/build
make
make install
build_wx:
runs-on: ubuntu-latest
steps:
- name: WX Cache
uses: actions/cache@v3
with:
path: builds/wxWidgets
key: ${{ runner.os }}-cache-key-wx
- run: wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.2.1/wxWidgets-3.2.2.1.tar.bz2
- run: tar -xjf wxWidgets-3.2.2.1.tar.bz2
- run: sudo apt install libgtk-3-dev
- run: cmake -B "${{github.workspace}}/cmake_build" -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/builds/wxWidgets" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DwxBUILD_SHARED=OFF
working-directory: wxWidgets-3.2.2.1
- run: cmake --build "${{github.workspace}}/cmake_build" --config ${{env.BUILD_TYPE}}
working-directory: wxWidgets-3.2.2.1
- run: cmake --install "${{github.workspace}}/cmake_build"
working-directory: wxWidgets-3.2.2.1
- run: cp "${{github.workspace}}/builds/wxWidgets/lib/wx/include/gtk3-unicode-static-3.2/wx/setup.h" "${{github.workspace}}/builds/wxWidgets/include/wx-3.2/wx"