forked from orioledb/orioledb
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.25 KB
/
static.yml
File metadata and controls
45 lines (43 loc) · 1.25 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
45
name: static
on:
push:
pull_request:
jobs:
static:
# Only run on push events OR pull requests from forks
if: |
github.event_name == 'push' ||
github.event.pull_request.head.repo.full_name != github.repository
runs-on:
- blacksmith-4vcpu-ubuntu-2404
strategy:
fail-fast: false
matrix:
pg_version: [16, 17]
compiler: [clang, gcc]
env:
LLVM_VER: 18
CPU: ${{ matrix.cpu }}
CHECK_TYPE: static
COMPILER: ${{ matrix.compiler }}
steps:
- name: Checkout extension code into workspace directory
uses: actions/checkout@v4
with:
path: orioledb
- name: Get the required tag name
shell: bash
run: |
echo "PGTAG=$(grep '^${{ matrix.pg_version }}: ' orioledb/.pgtags | cut -d' ' -f2-)" >> $GITHUB_ENV
- name: Checkout PostgreSQL code into workspace directory
uses: actions/checkout@v4
with:
repository: orioledb/postgres
ref: ${{ env.PGTAG }}
path: postgresql
- name: Setup prerequisites
run: bash ./orioledb/ci/prerequisites.sh
- name: Build
run: bash ./orioledb/ci/build.sh
- name: Static analysis
run: bash ./orioledb/ci/static.sh