This repository was archived by the owner on Mar 26, 2026. It is now read-only.
updated README.md #68
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ master, main ] | |
| pull_request: | |
| branches: [ master, main ] | |
| jobs: | |
| docker-build: | |
| name: Build with Docker (GCC trunk + reflection) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker image with GCC trunk | |
| run: | | |
| docker compose -f docker/docker-compose.yml build build | |
| env: | |
| DOCKER_BUILDKIT: 1 | |
| - name: Build C++ library and Python bindings | |
| run: | | |
| docker compose -f docker/docker-compose.yml run --rm build | |
| - name: Run C++ tests | |
| run: | | |
| docker compose -f docker/docker-compose.yml run --rm test | |
| - name: Test Python import | |
| run: | | |
| docker compose -f docker/docker-compose.yml run --rm dev bash -c " | |
| export PYTHONPATH=/workspace/src/python | |
| python3 -c 'import libsqlglot; print(\"✓ libsqlglot imported successfully\")' | |
| python3 -c 'import libsqlglot; print(\"Dialect count:\", libsqlglot.__dialect_count__)' | |
| " | |
| docker-check: | |
| name: Validate Docker configuration | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate docker-compose.yml | |
| run: | | |
| docker compose -f docker/docker-compose.yml config --quiet | |
| - name: Validate grammar transpiler docker-compose.yml | |
| run: | | |
| docker compose -f docker/grammar-transpiler/docker-compose.yml config --quiet | |
| docs-check: | |
| name: Check documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check required files exist | |
| run: | | |
| test -f README.md | |
| test -f LICENSE | |
| test -f docker/README.md | |
| test -f docker/grammar-transpiler/README.md | |
| - name: Verify Docker documentation is up-to-date | |
| run: | | |
| grep -q "GCC trunk" docker/README.md | |
| grep -q "reflection" docker/README.md |