Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions .github/images.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
#!/bin/sh
set -eu

# Stop in case of error
set -e
: "${TAG:?TAG must be set}"
: "${PKG:?PKG must be set}"

# Download separately so a failed download stops the script.
DOCKERFILE=$(curl -fsSL \
https://raw.githubusercontent.com/ghdl/docker/master/run_debian.dockerfile)

docker build \
--build-arg IMAGE="python:3-slim-bullseye" \
--build-arg LLVM_VER=9 \
--build-arg GNAT_VER=9 \
--progress=plain \
--build-arg IMAGE="python:3.13-slim-bookworm" \
--build-arg LLVM_VER=14 \
--build-arg GNAT_VER=12 \
--target vunit \
-t "vunit/dev/${TAG}" \
- <<-EOF
$(curl -fsSL https://raw.githubusercontent.com/ghdl/docker/master/run_debian.dockerfile)
- <<EOF
${DOCKERFILE}

FROM ${TAG} AS vunit

COPY --from=ghdl/pkg:bookworm-${PKG} / /usr/local/

FROM $TAG AS vunit
COPY --from=ghdl/pkg:bullseye-$PKG / /
RUN ghdl --version
RUN pip install -U tox colorama coverage --progress-bar off
EOF
EOF
2 changes: 1 addition & 1 deletion .github/workflows/images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
task: [
{ tag: llvm, pkg: llvm-9 },
{ tag: llvm, pkg: llvm-14 },
{ tag: mcode, pkg: mcode },
]
runs-on: ubuntu-latest
Expand Down
Loading