Skip to content

Commit 5fce9ad

Browse files
committed
ci: add GitHub Actions workflow for build and test
Runs on Ubuntu 22.04/24.04 with g++ and clang++, plus macOS. Builds libsqlparser.a and runs all tests via Makefile.new.
1 parent a8bf3f1 commit 5fce9ad

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build-and-test:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-22.04, ubuntu-24.04]
14+
compiler: [g++, clang++]
15+
runs-on: ${{ matrix.os }}
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Build and test
20+
env:
21+
CXX: ${{ matrix.compiler }}
22+
run: make -f Makefile.new clean && make -f Makefile.new all
23+
24+
macos:
25+
runs-on: macos-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Build and test
30+
run: make -f Makefile.new clean && make -f Makefile.new all

0 commit comments

Comments
 (0)