-
Notifications
You must be signed in to change notification settings - Fork 78
54 lines (51 loc) · 1.39 KB
/
ubuntu-gtk.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
name: Ubuntu GTK
on:
- push
- pull_request
jobs:
build_by_meson:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Downloading dependencies 📥
run: sudo apt-get install build-essential meson libgtksourceviewmm-3.0-dev libgtkmm-3.0-dev libtinyxml2-dev
- name: Configure 🔧
run: meson _build -DTARGET_DEMO=GTK
- name: Compile 🎲
run: ninja -C _build
- name: Compress build artifacts 📦
run: |
pushd _build
tar -c * | zstd -o $GITHUB_WORKSPACE/artifacts.tar.zst
popd
- name: Upload build artifacts 📤
uses: actions/upload-artifact@v1
with:
name: Build artifacts
path: artifacts.tar.zst
build_by_cmake:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-20.04
steps:
- name: Downloading Source Code 📥
uses: actions/checkout@v2
- name: Downloading dependencies 📥
run: sudo apt-get install build-essential meson libgtksourceviewmm-3.0-dev libgtkmm-3.0-dev libtinyxml2-dev
- name: Configure 🔧
run: |
cd ${{ github.workspace }}
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -G Ninja
- name: Compile 🎲
run: |
cd ${{ github.workspace }}
cd build
ninja