* Used newer version of checkout github action * Updated actions/upload-artifact action version to use Node 16 * Updated actions * Experiment * Name documentation artifacts * Moved doxyrest version to environment * Extract PR number * Properly upload documentation * Updated github_org_control/config.json
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: Code snippets
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/code_snippets.yml'
|
|
- 'docs/snippets/**'
|
|
branches:
|
|
- 'master'
|
|
- 'releases/**'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/code_snippets.yml'
|
|
- 'docs/snippets/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
Build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: ['ubuntu-22.04', 'macos-latest', 'windows-latest']
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Clone OpenVINO
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
lfs: true
|
|
|
|
- name: CMake configure
|
|
run: cmake -DENABLE_INTEL_MYRIAD_COMMON=OFF -DCMAKE_BUILD_TYPE=Release -B build
|
|
|
|
- name: Get number of CPU cores
|
|
uses: SimenB/github-actions-cpu-cores@v1
|
|
id: cpu-cores
|
|
|
|
- name: Build snippets
|
|
run: cmake --build build --target ie_docs_snippets --parallel ${{ steps.cpu-cores.outputs.count }}
|