forked from elfmz/far2l
-
Notifications
You must be signed in to change notification settings - Fork 0
236 lines (201 loc) · 7.42 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
name: check build
on:
# allow manually running workflow, useful for testing branches
workflow_dispatch:
# run on push in master
push:
branches:
- master
paths-ignore:
- '.vscode/**'
- '.cirrus.yml'
- '.clang-format'
- '.clang-format.json'
- '.editorconfig'
- '.gitignore'
- '.travis.yml'
- 'Brewfile'
- 'CODESTYLE.md'
- 'dependencies-minimal.txt'
- 'dependencies.txt'
- 'Dockerfile'
- 'HACKING.md'
- 'LICENSE.txt'
- 'README.md'
# run on pull request to master
pull_request:
branches:
- master
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
ubuntu-low-compiler:
if: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository != 'elfmz/far2l') }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
compiler: [ gcc, clang ]
include:
- compiler: gcc
version: 7
c: /usr/bin/gcc-7
cxx: /usr/bin/g++-7
- compiler: clang
version: 7
c: /usr/bin/clang-7
cxx: /usr/bin/clang++-7
name: ubuntu-${{ matrix.compiler }}-${{ matrix.version }}
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Install compilers
run: >
sudo apt-get update;
sudo apt-get -y install gcc-7 g++-7 clang-7
- name: Install far2l dependencies
run: >
sudo apt-get -y install
libuchardet-dev libxml2-dev libwxgtk3.0-gtk3-dev
libx11-dev libxi-dev
libssl-dev libsmbclient-dev libnfs-dev libneon27-dev libssh-dev
libarchive-dev
libarchive-dev
python3-dev python3-cffi
- name: Create Build Environment
# Create a separate build directory as working directory for all subsequent commands
run: mkdir -p _build
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
# -S and -B options specify source and build directories
run: >
cmake -S . -B _build -Wno-dev -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPYTHON=yes
-DCMAKE_C_COMPILER=${{ matrix.c }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx }}
- name: Build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
cmake --build _build --config $BUILD_TYPE -j$(nproc --all)
ubuntu-medium-compiler:
if: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository != 'elfmz/far2l') }}
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
compiler: [ gcc, clang ]
include:
- compiler: gcc
version: 12
c: /usr/bin/gcc-12
cxx: /usr/bin/g++-12
- compiler: clang
version: 15
c: /usr/bin/clang-15
cxx: /usr/bin/clang++-15
name: ubuntu-${{ matrix.compiler }}-${{ matrix.version }}
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Install far2l dependencies
run: >
sudo apt-get update;
sudo apt-get -y install
libuchardet-dev libxml2-dev libwxgtk3.0-gtk3-dev
libx11-dev libxi-dev
libssl-dev libsmbclient-dev libnfs-dev libneon27-dev libssh-dev
libarchive-dev
python3-dev python3-cffi
- name: Create Build Environment
# Create a separate build directory as working directory for all subsequent commands
run: mkdir -p _build
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
# -S and -B options specify source and build directories
run: >
cmake -S . -B _build -Wno-dev -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPYTHON=yes
-DCMAKE_C_COMPILER=${{ matrix.c }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx }}
- name: Build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
cmake --build _build --config $BUILD_TYPE -j$(nproc --all)
ubuntu-high-compiler:
if: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository != 'elfmz/far2l') }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
compiler: [ gcc, clang ]
include:
- compiler: gcc
version: 14
c: /usr/bin/gcc-14
cxx: /usr/bin/g++-14
- compiler: clang
version: 18
c: /usr/bin/clang-18
cxx: /usr/bin/clang++-18
name: ubuntu-${{ matrix.compiler }}-${{ matrix.version }}
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Install far2l dependencies
run: >
sudo apt-get update;
sudo apt-get -y install
libuchardet-dev libxml2-dev libwxgtk3.2-dev
libx11-dev libxi-dev
libssl-dev libsmbclient-dev libnfs-dev libneon27-dev libssh-dev
libarchive-dev
python3-dev python3-cffi
- name: Create Build Environment
# Create a separate build directory as working directory for all subsequent commands
run: mkdir -p _build
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
# -S and -B options specify source and build directories
run: >
cmake -S . -B _build -Wno-dev -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPYTHON=yes
-DCMAKE_C_COMPILER=${{ matrix.c }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx }}
- name: Build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
cmake --build _build --config $BUILD_TYPE -j$(nproc --all)
macos14-arm64-clang15:
if: ${{ !(github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository != 'elfmz/far2l') }}
runs-on: macos-14
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Install far2l dependencies
# libx11, openssl is already installed
run: >
brew install
uchardet libxml2 wxwidgets
libxi
samba libnfs neon libssh
libarchive
- name: Relink 'keg-only' packages
run: brew link libarchive --force
- name: Create Build Environment
# Create a separate build directory as working directory for all subsequent commands
run: mkdir -p _build
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
# -S and -B options specify source and build directories
run: cmake -S . -B _build -Wno-dev -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPYTHON=yes
- name: Build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
cmake --build _build --config $BUILD_TYPE -j$(sysctl -n hw.logicalcpu)