Skip to content

Commit

Permalink
ppa:deadsnakes/ppa
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Jul 8, 2024
1 parent 004dec9 commit 973032f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docker-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ jobs:
python_version: ["2.7", "3.6", "3.7", "3.8", "3.9"]
opencv_version: ["4.10.0"]
device: ["cpu", "gpu"]
cuda_version: ["11.8.0"]
include:
- { ubuntu_version: "22.04", python_version: "3.10", opencv_version: "4.10.0", device: "cpu" }
- { ubuntu_version: "22.04", python_version: "3.10", opencv_version: "4.10.0", device: "gpu" }
- { ubuntu_version: "22.04", python_version: "3.10", opencv_version: "4.10.0", device: "gpu", cuda_version: "12.5.0" }
- { ubuntu_version: "22.04", python_version: "3.11", opencv_version: "4.10.0", device: "cpu" }
- { ubuntu_version: "22.04", python_version: "3.11", opencv_version: "4.10.0", device: "gpu" }
- { ubuntu_version: "24.04", python_version: "3.12", opencv_version: "4.10.0", device: "cpu" }
- { ubuntu_version: "24.04", python_version: "3.12", opencv_version: "4.10.0", device: "gpu" }
- { ubuntu_version: "22.04", python_version: "3.11", opencv_version: "4.10.0", device: "gpu", cuda_version: "12.5.0"}
- { ubuntu_version: "22.04", python_version: "3.12", opencv_version: "4.10.0", device: "cpu" }
- { ubuntu_version: "22.04", python_version: "3.12", opencv_version: "4.10.0", device: "gpu", cuda_version: "12.5.0" }
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -47,6 +48,7 @@ jobs:
UBUNTU_VERSION=${{ matrix.ubuntu_version }}
PYTHON_VERSION=${{ matrix.python_version }}
OPENCV_VERSION=${{ matrix.opencv_version }}
CUDA_VERSION=${{ matrix.cuda_version }}
file: ${{ matrix.device }}/Dockerfile
# publish master
push: ${{ github.ref == 'refs/heads/master' }}
Expand Down
2 changes: 1 addition & 1 deletion cpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN \
# add sources for older pythons
apt-get update -q --fix-missing && \
apt-get install -y --no-install-recommends software-properties-common && \
if [[ "$PYTHON_VERSION" =~ ^(2.7|3.6|3.7)$ ]]; then \
if [[ "$PYTHON_VERSION" =~ ^(2.7|3.6|3.7|3.12)$ ]]; then \
add-apt-repository ppa:deadsnakes/ppa ; \
fi && \
apt-add-repository universe && \
Expand Down
2 changes: 1 addition & 1 deletion gpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN \
# add sources for older pythons
apt-get update -qq --fix-missing && \
apt-get install -y --no-install-recommends software-properties-common && \
if [[ "$PYTHON_VERSION" =~ ^(2.7|3.6|3.7)$ ]]; then \
if [[ "$PYTHON_VERSION" =~ ^(2.7|3.6|3.7|3.12)$ ]]; then \
add-apt-repository ppa:deadsnakes/ppa ; \
fi && \
apt-add-repository universe && \
Expand Down

0 comments on commit 973032f

Please sign in to comment.