-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (38 loc) · 1.08 KB
/
Copy pathc-cpp.yml
File metadata and controls
44 lines (38 loc) · 1.08 KB
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
name: C/C++ CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
PG_VER: 16
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup PostgreSQL
uses: tj-actions/install-postgresql@v3
with:
postgresql-version: ${{ env.PG_VER }}
- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y postgresql-server-dev-${{ env.PG_VER }}
- uses: actions/checkout@v4
- name: make
run: make
- name: make check
run: make check
- name: make install
run: sudo make install
- name: Start PostgreSQL service
run: sudo systemctl start postgresql.service
- name: Add extension to PostgreSQL
run: sudo -u postgres psql postgres -c "CREATE EXTENSION pg_setpriority"
- name: Test extension pg_setpriority
run: sudo -u postgres psql postgres -c "EXPLAIN (ANALYZE, TIMING, FORMAT YAML) SELECT setpriority(getpriority())"
# auto_tests:
# name: Auto Tests
# runs-on: ubuntu-latest
# needs: build
# steps: