-
Notifications
You must be signed in to change notification settings - Fork 63
56 lines (53 loc) · 1.68 KB
/
images_build_check.yml
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
name: Images build check
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
permissions: read-all
jobs:
image_build:
strategy:
matrix:
os: [ubuntu-20.04]
image_os: [ubuntu20]
image_distribution: [runtime]
exclude:
- os: ubuntu-20.04
image_os: winserver2019
- os: windows-2019
image_os: centos7
- os: windows-2019
image_os: ubuntu20
- os: windows-2019
image_os: ubuntu20
runs-on: ${{ matrix.os }}
steps:
- name: Code checkout
uses: actions/checkout@v2
- name: Setting up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Setting up Python dependencies
if: ${{ always() }}
run: python -m pip install -r requirements.txt
- name: Build Linux image (runtime, latest release)
if: ${{ matrix.os == 'ubuntu-20.04' && ! startsWith(matrix.image_os, 'win') }}
run: python docker_openvino.py build --dist ${{ matrix.image_distribution }} -d cpu -d gpu -os ${{ matrix.image_os }}
- name: Build Windows image (runtime, latest release)
if: ${{ matrix.os == 'windows-2019' && startsWith(matrix.image_os, 'win') }}
run: python docker_openvino.py build --dist ${{ matrix.image_distribution }} -os ${{ matrix.image_os }}
- name: Checking resulting image
if: ${{ always() }}
run: docker images
- name: Collecting artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: logs
path: |
logs/
./*.html
./*.log