Skip to content

Commit

Permalink
ci(build-docker): add gcc/clang/llvm base layer
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Aug 13, 2023
1 parent f949ab7 commit a60e795
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/docker/layer-10.00-exercism-gcc_clang_llvm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#!/bin/bash

# https://apt.llvm.org/

# this path from for the container
# shellcheck disable=SC1091
. /.github/docker/include

layer_begin "$@"

declare -a PACKAGES
PACKAGES=(
build-essential
ccls
clangd-16
clang-16
clang-16-doc
clang-format-16
clang-tidy-16
clang-tools-16
cmake
gcc
gcovr
gettext
gnu-standards
g++
lcov
libboost-all-dev
libclang1-16
libclang-16-dev
libclang-common-16-dev
libclang-rt-16-dev
libc++abi-16-dev
libc++-16-dev
libfuzzer-16-dev
libllvm16
libllvm-16-ocaml-dev
libssl-dev
libunwind-16-dev
lldb-16
lld-16
llvm-16
llvm-16-dev
llvm-16-runtime
make
pkg-config
python3-clang-16
)

# wget -q https://apt.llvm.org/llvm.sh
# chmod -v +x llvm.sh
# ./llvm.sh 16 all

tee -a /etc/apt/sources.list <<EOF
# deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye main
# deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye main
# deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-14 main
# deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-14 main
# deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-15 main
# deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-15 main
deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-16 main
deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-16 main
# deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-17 main
#deb-src http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-17 main
EOF

#wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
curl -sS https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc

apt update

echo apt install -y "${PACKAGES[@]}"
apt install -y "${PACKAGES[@]}" || exit
printf "\n"

layer_end "$@"
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ RUN .github/docker/layer-00.00-base-dependencies.sh ci-generic-debian

RUN .github/docker/layer-00.10-base-daggerio.sh ci-generic-debian

RUN .github/docker/layer-10.00-exercism-gcc_clang_llvm.sh ci-generic-debian

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY .github/docker/entrypoint.sh /entrypoint.sh

Expand Down

0 comments on commit a60e795

Please sign in to comment.