Skip to content

Commit 36ca2e6

Browse files
16bit-ykikoclaude
andcommitted
feat: add toolchain data, fetch scripts, MkDocs generation, and CI
- TOML data for 8 compilers, 10+ build systems, 19 tools, 15 libc implementations, C++ stdlibs, runtime libs, sanitizers, and targets - fetch_data.py: automated data fetching from GitHub API and web sources with merge strategy to preserve manually curated entries - generate_docs.py: TOML → MkDocs Material site with navigation tabs - pixi.toml: dependency management (Python, requests, tomli-w, mkdocs-material) - CI: daily data update workflow + GitHub Pages deployment on push Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 6908be4 commit 36ca2e6

26 files changed

+18528
-1
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: prefix-dev/[email protected]
24+
with:
25+
pixi-version: v0.46.0
26+
27+
- name: Generate docs and build site
28+
run: |
29+
pixi run generate
30+
pixi run build
31+
32+
- uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: site/
35+
36+
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
environment:
40+
name: github-pages
41+
url: ${{ steps.deployment.outputs.page_url }}
42+
steps:
43+
- uses: actions/deploy-pages@v4
44+
id: deployment

.github/workflows/update-data.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Update Toolchain Data
2+
3+
on:
4+
schedule:
5+
# Run daily at 06:00 UTC
6+
- cron: "0 6 * * *"
7+
workflow_dispatch: # Allow manual trigger
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
update:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: prefix-dev/[email protected]
19+
with:
20+
pixi-version: v0.46.0
21+
22+
- name: Install LLVM (for clang --print-targets)
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install -y clang
26+
27+
- name: Fetch all data
28+
env:
29+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: pixi run fetch
31+
32+
- name: Check for changes
33+
id: changes
34+
run: |
35+
git diff --quiet -- data/ && echo "changed=false" >> $GITHUB_OUTPUT || echo "changed=true" >> $GITHUB_OUTPUT
36+
37+
- name: Commit and push
38+
if: steps.changes.outputs.changed == 'true'
39+
run: |
40+
git config user.name "github-actions[bot]"
41+
git config user.email "github-actions[bot]@users.noreply.github.com"
42+
git add data/
43+
git commit -m "chore: update toolchain data ($(date -u +%Y-%m-%d))"
44+
git push

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
site/
2+
docs/
3+
mkdocs.yml
4+
__pycache__/
5+
*.pyc
6+
.pixi/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cltas
22

3-
A unified, open database of C++ toolchain metadata system header paths, implicit flags, platform quirks, and cross-compilation info.
3+
**C/C++ Language Toolchain And System** — a unified, open database of C/C++ toolchain metadata: system header paths, implicit flags, platform quirks, and cross-compilation info.
44

55
## The Problem
66

0 commit comments

Comments
 (0)