Skip to content

Commit

Permalink
Remove compiler dependency
Browse files Browse the repository at this point in the history
This reverts 60f7176.
  • Loading branch information
PeterBowman committed Jun 19, 2024
1 parent 60f7176 commit b5a4271
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
docker:
name: build (Ubuntu ${{matrix.ubuntu}}, OpenCV ${{matrix.opencv}}, ${{matrix.compiler.label}})
name: build (Ubuntu ${{matrix.ubuntu}}, OpenCV ${{matrix.opencv}})
runs-on: ubuntu-latest

permissions:
Expand All @@ -24,9 +24,6 @@ jobs:
matrix:
ubuntu: ['20.04', '22.04']
opencv: ['4.x']
compiler:
- { cmd: 'g++', label: 'gcc' }
- { cmd: 'clang', label: 'clang' }

steps:
- name: Check out main project
Expand All @@ -50,9 +47,8 @@ jobs:
with:
push: true
context: docker
tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:ubuntu-${{matrix.ubuntu}}-opencv-${{matrix.opencv}}-${{matrix.compiler.label}}
tags: ${{env.REGISTRY}}/${{env.IMAGE_NAME}}:ubuntu-${{matrix.ubuntu}}-opencv-${{matrix.opencv}}
labels: ${{steps.meta.outputs.labels}}
build-args: |
OPENCV_TAG=${{matrix.opencv}}
UBUNTU_TAG=${{matrix.ubuntu}}
COMPILER=${{matrix.compiler.cmd}}
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ ARG UBUNTU_TAG
FROM ubuntu:${UBUNTU_TAG}

ARG OPENCV_TAG
ARG COMPILER

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y \
${COMPILER} \
g++ \
clang \
cmake \
wget \
unzip \
Expand Down

0 comments on commit b5a4271

Please sign in to comment.