Skip to content

Commit

Permalink
ci(docker-build): update/clean up layer scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Aug 31, 2023
1 parent 55010ec commit 7bdc80c
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 94 deletions.
3 changes: 3 additions & 0 deletions .github/docker/layer-00.00-base-dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
#
# .github/docker/layer-00.00-base-dependencies.sh
#

# this path from for the container
# shellcheck disable=SC1091
Expand Down
3 changes: 3 additions & 0 deletions .github/docker/layer-00.10-base-daggerio.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
#
# .github/docker/layer-00.10-base-daggerio.sh
#

set -o pipefail

Expand Down
27 changes: 15 additions & 12 deletions .github/docker/layer-02.20-exercism-nodejs.sh
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
#!/bin/bash
#
# .github/docker/layer-02.20-exercism-nodejs.sh
#

set -o pipefail

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

layer_begin "$@"
main() {
layer_begin "$@"

declare -a PACKAGES
PACKAGES=(
nodejs
npm
)
declare -a PACKAGES
PACKAGES=(
nodejs
npm
)

declare -a MODULES
MODULES=(
json2yaml
yarn
)
declare -a MODULES
MODULES=(
json2yaml
yarn
)

main() {
apt update

echo apt install -y "${PACKAGES[@]}"
Expand Down
83 changes: 43 additions & 40 deletions .github/docker/layer-10.00-exercism-gcc_clang_llvm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
#
# .github/docker/layer-10.00-exercism-gcc_clang_llvm.sh
#

set -o pipefail

Expand All @@ -8,48 +11,48 @@ set -o pipefail
# shellcheck disable=SC1091
. /.github/docker/include

layer_begin "$@"
main() {
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
)
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
)

main() {
# wget -q https://apt.llvm.org/llvm.sh
# chmod -v +x llvm.sh
# ./llvm.sh 16 all
Expand Down
87 changes: 45 additions & 42 deletions .github/docker/layer-15.00-exercism-rust.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
#
# .github/docker/layer-15.00-exercism-rust.sh
#

set -o pipefail

Expand All @@ -8,49 +11,49 @@ set -o pipefail
# shellcheck disable=SC1091
. /.github/docker/include

layer_begin "$@"

declare -a PACKAGES
PACKAGES=(
clang-16
clang-tidy-16
clang-tools-16
cmake
g++
gcovr
lcov
libllvm-16-ocaml-dev
libllvm16
libssl-dev
lld-16
llvm-16
llvm-16-dev
llvm-16-doc
llvm-16-examples
llvm-16-runtime
)

declare -a CRATES
CRATES=(
cargo-audit
cargo-edit
cargo-fix
cargo-fuzz
cargo-kcov
cargo-llvm-cov
cargo-tarpaulin
grcov
zellij
)

declare -a COMPONENTS
COMPONENTS=(
clippy
llvm-tools-x86_64-unknown-linux-gnu
rustfmt
)

main() {
layer_begin "$@"

declare -a PACKAGES
PACKAGES=(
clang-16
clang-tidy-16
clang-tools-16
cmake
g++
gcovr
lcov
libllvm-16-ocaml-dev
libllvm16
libssl-dev
lld-16
llvm-16
llvm-16-dev
llvm-16-doc
llvm-16-examples
llvm-16-runtime
)

declare -a CRATES
CRATES=(
cargo-audit
cargo-edit
cargo-fix
cargo-fuzz
cargo-kcov
cargo-llvm-cov
cargo-tarpaulin
grcov
zellij
)

declare -a COMPONENTS
COMPONENTS=(
clippy
llvm-tools-x86_64-unknown-linux-gnu
rustfmt
)

echo Running: apt install -y "${PACKAGES[@]}"
time apt install -y "${PACKAGES[@]}" || exit
printf "\n"
Expand Down

0 comments on commit 7bdc80c

Please sign in to comment.