-
Notifications
You must be signed in to change notification settings - Fork 467
50 lines (41 loc) · 1.33 KB
/
ubuntu.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
name: ubuntu
on:
workflow_dispatch:
push:
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
steps:
# WxWidgets
- name: install dependencies for wxWidgets
run: sudo apt-get install build-essential clang-format-12 cmake git libedit-dev libgtk-3-dev libhunspell-dev libsqlite3-dev libssh-dev pkg-config xterm
- name: Checkout WxWidgets
uses: actions/checkout@v4
with:
repository: wxWidgets/wxWidgets
path: wxWidgets
ref: 3.2
submodules: recursive
- name: build and install wxWidgets
run: |
mkdir -p wxWidgets/build-release
cd wxWidgets/build-release
../configure --disable-debug_flag --with-gtk=3 --enable-stl
make -j$(nproc) && sudo make install
# Codelite
- name: install Codelite's dependencies
run: sudo apt-get install build-essential cmake git libpcre2-dev libsqlite3-dev libssh-dev
- name: Checkout Codelite
uses: actions/checkout@v4
with:
submodules: recursive
- name: build and install Codelite
run: |
mkdir build-release
cd build-release
cmake -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1
make -j$(nproc)
sudo make install
- name: codelite --version
run: xvfb-run -a codelite --version || exit 0 # codelite --version returns -1