-
Notifications
You must be signed in to change notification settings - Fork 18
41 lines (39 loc) · 1.2 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
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends libgtk2.0-dev libgtk-3-dev libvte-dev libvte-2.91-dev libgtk-layer-shell-dev
python3 -m pip install meson ninja
- name: Copy source
run: |
cp -r `pwd` ../gtk3-meson
cp -r `pwd` ../gtk3-autotools
cp -r `pwd` ../gtk2-autotools
- name: Meson build
run: |
meson --buildtype=release -Dgtkver=2 build
ninja -C build
DESTDIR=/tmp/meson-gtk2 ninja -C build install
cd ../gtk3-meson
meson --buildtype=release build
ninja -C build
meson configure build -Dbash=true
ninja -C build
DESTDIR=/tmp/meson-gtk3 ninja -C build install
- name: Autotools build
run: |
cd ../gtk2-autotools
./autogen.sh
make -j`nproc`
sudo DESTDIR=/tmp/autotools-gtk2 make install
cd ../gtk3-autotools
./autogen.sh --enable-gtk3
make -j`nproc`
sudo DESTDIR=/tmp/autotools-gtk3 make install