Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Update C/C++ API Docs
 
# Run when the C API changes or every week so that the artifact does not expire.
# Also runs on pull requests that touch relevant files so doc generation errors
# are caught early. The artifact is only published on the main branch.
on:
  push:
    branches:
      - main
    paths:
      - include/onnxruntime/core/session/**
      - orttraining/orttraining/training_api/include/**
      - docs/c_cxx/**
  pull_request:
    paths:
      - include/onnxruntime/core/session/**
      - orttraining/orttraining/training_api/include/**
      - docs/c_cxx/**
  schedule:
    - cron: '0 0 * * 0'
  workflow_dispatch:
 
concurrency:
  group: "apidocs-c-${{ github.ref }}"
  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
 
permissions:
  contents: write
 
jobs:
  build:
    name: Generate C/C++ API docs
    runs-on: [
        "self-hosted",
        "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU",
        "JobId=apidocs-c-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
        ]
    timeout-minutes: 120
    steps:
      - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
      - name: Install doxygen and dependencies
        run: |
          sudo apt update
          sudo apt-get install libclang-dev
          sudo apt-get install libclang-cpp14
          wget https://github.com/doxygen/doxygen/releases/download/Release_1_9_8/doxygen-1.9.8.linux.bin.tar.gz
          tar xvzf doxygen-1.9.8.linux.bin.tar.gz
      - name: Run doxygen
        run: |
          mkdir -p build/doxygen
          cd docs/c_cxx
          ../../doxygen-1.9.8/bin/doxygen
      - name: Log source commit
        run: git rev-parse --short HEAD > build/doxygen/html/source-version.txt
      - name: Move C/C++ docs into site
        run: |
          mkdir -p _site/docs/api
          rm -rf _site/docs/api/c
          mv build/doxygen/html _site/docs/api/c
      - name: Upload new site
        if: github.ref == 'refs/heads/main'
        uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
        with:
          name: onnxruntime-c-apidocs
          path: _site
          retention-days: 10