Skip to content

Commit ec4d57d

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

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/make.yml

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

0 commit comments

Comments
 (0)