Исходный код СУБД 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
name: Setup vcpkg cache
description: Restores the vcpkg cache and saves it only for main branch runs.
 
inputs:
  key:
    description: Workflow and job-specific cache key component.
    required: true
  path:
    description: Path to the vcpkg cache directory.
    required: false
    default: ~/.cache/vcpkg
 
runs:
  using: composite
  steps:
    - name: Configure Windows vcpkg binary cache
      if: runner.os == 'Windows'
      shell: pwsh
      env:
        VCPKG_CACHE_PATH: ${{ inputs.path }}
      run: |
        New-Item -ItemType Directory -Path $env:VCPKG_CACHE_PATH -Force | Out-Null
        "VCPKG_DEFAULT_BINARY_CACHE=$env:VCPKG_CACHE_PATH" |
          Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
 
    - name: Restore and save vcpkg cache
      if: github.ref == 'refs/heads/main'
      uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
      with:
        key: >-
          vcpkg-cache-v2-${{ runner.os }}-${{ runner.arch }}-${{ inputs.key }}-${{
            hashFiles(
              'cmake/vcpkg.json',
              'cmake/vcpkg-configuration.json',
              'cmake/vcpkg-ports/**',
              'tools/ci_build/vcpkg_tool_info.json',
              'tools/python/util/vcpkg_helpers.py'
            )
          }}
        restore-keys: |
          vcpkg-cache-v2-${{ runner.os }}-${{ runner.arch }}-${{ inputs.key }}-
        path: ${{ inputs.path }}
 
    - name: Restore vcpkg cache
      if: github.ref != 'refs/heads/main'
      uses: actions/cache/restore@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
      with:
        key: >-
          vcpkg-cache-v2-${{ runner.os }}-${{ runner.arch }}-${{ inputs.key }}-${{
            hashFiles(
              'cmake/vcpkg.json',
              'cmake/vcpkg-configuration.json',
              'cmake/vcpkg-ports/**',
              'tools/ci_build/vcpkg_tool_info.json',
              'tools/python/util/vcpkg_helpers.py'
            )
          }}
        restore-keys: |
          vcpkg-cache-v2-${{ runner.os }}-${{ runner.arch }}-${{ inputs.key }}-
        path: ${{ inputs.path }}