Skip to content

Commit ad226e9

Browse files
committed
ci: build against more versions
With several previous changes, we can now expand the CI matrix to include all three OpenVINO versions published in 2022. This project only aims to support the latest published version, but older versions are retained as nice-to-have check.
1 parent 21aae59 commit ad226e9

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,37 +40,36 @@ jobs:
4040
fail-fast: false
4141
matrix:
4242
os: [ubuntu18, ubuntu20]
43-
version: [2022.1.0]
43+
version: [2022.1.0, 2022.2.0, 2022.3.0]
4444
steps:
4545
- uses: actions/checkout@v2
4646
with:
4747
submodules: recursive
4848
lfs: true
49-
- name: Checkout LFS obects
49+
- name: Checkout LFS objects
5050
run: git lfs checkout
5151
- name: Build the Docker image
5252
run: docker build . --tag openvino-rs:${{ matrix.OS }}-${{ matrix.version }}-$(date +%s) --build-arg OS=${{ matrix.os }} --build-arg VERSION=${{ matrix.version }}
5353

54-
# Build and test from an existing OpenVINO installation inside a Docker image (i.e. download the
55-
# binaries, then compile against these).
54+
# Build and test from an existing OpenVINO installation from an archive installed on the
55+
# filesystem.
5656
runtime_binaries:
5757
name: From runtime-linked binaries
58-
runs-on: ubuntu-20.04
58+
runs-on: ubuntu-22.04
5959
steps:
6060
- uses: actions/checkout@v2
6161
with:
6262
submodules: recursive
6363
lfs: true
64-
- name: Checkout LFS obects
64+
- name: Checkout LFS objects
6565
run: git lfs checkout
66-
- uses: abrown/install-openvino-action@v3
66+
- uses: abrown/install-openvino-action@v6
67+
with:
68+
apt: true
6769
- name: Build and run tests
68-
run: |
69-
source /opt/intel/openvino_2022/setupvars.sh
70-
cargo test --features openvino-sys/runtime-linking
70+
run: cargo test --features openvino-sys/runtime-linking
7171

72-
# Build and test from an existing OpenVINO installation inside a Docker image (i.e. download the
73-
# binaries, then compile against these).
72+
# Check that the documentation builds.
7473
docs:
7574
name: Documentation
7675
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)