Skip to content

Commit 30b7596

Browse files
committed
Add github workflow for meson build [skip ci]
1 parent e5086b3 commit 30b7596

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/make.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI Meson
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
name: Build and Test on ${{ matrix.os }} with Meson and build type ${{ matrix.build_type }}
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os:
12+
- ubuntu-latest
13+
build_type:
14+
- release
15+
- debugoptimized
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
- name: Update install packages
20+
run: |
21+
sudo env DEBIAN_FRONTEND=noninteractive apt update
22+
sudo env DEBIAN_FRONTEND=noninteractive apt full-upgrade -y
23+
- name: Install packages
24+
run: >
25+
sudo env DEBIAN_FRONTEND=noninteractive apt install -y
26+
bison
27+
build-essential
28+
ccache
29+
flex
30+
libicu-dev
31+
libreadline-dev
32+
libssl-dev
33+
libxml2-dev
34+
libxml2-utils
35+
libxslt-dev
36+
libzstd-dev
37+
pkg-config
38+
xsltproc
39+
zlib1g-dev
40+
- name: Set up Python
41+
uses: actions/setup-python@v5
42+
with:
43+
python-version: '>= 3.7'
44+
- name: Install dependencies
45+
run: python -m pip install meson ninja
46+
- name: Configure Project
47+
run: meson setup build/ --prefix $PWD/installdir
48+
- name: Compile
49+
run: meson compile -C build/
50+
- name: Run Tests
51+
run: meson test -C build/ -v
52+
- name: Install
53+
run: meson install -C build/
54+
- name: Upload Install
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: postgres-${{ matrix.os }}-${{ matrix.build_type }}
58+
path: installdir/**

0 commit comments

Comments
 (0)