Skip to content

Commit 4a4abd7

Browse files
authored
ci: use new version of OpenVINO installer (#84)
The `install-openvino-action` has improved and this brings in the latest changes: `v8`. Unfortunately, installing OpenVINO packages from APT has changed from v2022 to v2023. For `v2022.*` the APT repository used the `jammy` and `focal` release names; now, `v2023.*`, it appears to use `ubuntu20` and `ubuntu22`. Since the `openvino-install-action` has switched to the latter names, let's just use a new-ish version for this package. Also, APT-installed libraries now live in `/lib` on Ubuntu.
1 parent 1be667a commit 4a4abd7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
# We also spot-check that things work when installing from APT by adding to the matrix: see
2626
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
2727
include:
28-
- os: ubuntu-20.04
29-
version: 2022.3.0
28+
- os: ubuntu-22.04
29+
version: 2023.2.0
3030
apt: true
3131
env:
3232
RUST_LOG: debug
@@ -38,7 +38,7 @@ jobs:
3838
lfs: true
3939
- name: Checkout LFS objects
4040
run: git lfs checkout
41-
- uses: abrown/install-openvino-action@v7
41+
- uses: abrown/install-openvino-action@v8
4242
with:
4343
version: ${{ matrix.version }}
4444
apt: ${{ matrix.apt }}

crates/openvino-finder/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ cfg_if! {
206206
cfg_if! {
207207
if #[cfg(target_os = "linux")] {
208208
const SYSTEM_INSTALLATION_DIRECTORIES: &[&str] = &[
209+
"/lib", // DEB-installed package (OpenVINO >= 2023.2)
209210
"/usr/lib/x86_64-linux-gnu", // DEB-installed package (OpenVINO >= 2022.3)
210211
"/lib/x86_64-linux-gnu", // DEB-installed package (TBB)
211212
"/usr/lib64", // RPM-installed package >= 2022.3

0 commit comments

Comments
 (0)