Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: github actions use docker images from ghcr.io/hrzlgnm/ #77

Merged
merged 9 commits into from
Nov 11, 2023
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
1 change: 1 addition & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
stoll
deque
musl
19 changes: 19 additions & 0 deletions .github/docker/monkey-github-builder-clang/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM debian:bullseye

RUN \
sed -n -e 's/^deb /deb-src /p' /etc/apt/sources.list >/etc/apt/sources.list.d/monkey-sources.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
clang-13 \
cmake \
git \
libc++-13-dev \
libc++abi-13-dev \
libc6-dev \
libstdc++-10-dev \
ninja-build \
python3

RUN rm -rf /var/lib/apt/lists/*
13 changes: 13 additions & 0 deletions .github/docker/monkey-github-builder-clang/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# monkey-github-builder--clang Docker image

## Updating the Docker image

Pick a version number for the new Docker image (e.g. `v2`), then run the
following commands:

$ docker build --tag ghcr.io/hrzlgnm/monkey-github-builder--clang:VERSION_NUMBER_HERE .github/docker/monkey-github-builder--clang/
$ docker login ghcr.io -u YOUR_GITHUB_USER_NAME_HERE
$ docker push ghcr.io/hrzlgnm/monkey-github-builder--clang:VERSION_NUMBER_HERE

Then, change the container tag in each workflow file in the .github/workflows/
directory to refer to your new version.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ghcr.io/void-linux/void-musl
RUN xbps-install -Syu || xbps-install -yu xbps \
&& xbps-install -yu \
&& xbps-install -y bash git cmake clang python3-codespell ninja clang clang-tools-extra cppcheck \
&& xbps-remove -Oy


Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# monkey-github-builder-void-linux-musl-clang Docker image

## Updating the Docker image

Pick a version number for the new Docker image (e.g. `v2`), then run the
following commands:

$ docker build --tag ghcr.io/hrzlgnm/monkey-github-builder-void-linux-musl-clang:VERSION_NUMBER_HERE .github/docker/monkey-github-builder-void-linux-musl-clang/
$ docker login ghcr.io -u YOUR_GITHUB_USER_NAME_HERE
$ docker push ghcr.io/hrzlgnm/monkey-github-builder-void-linux-musl-clang:VERSION_NUMBER_HERE

Then, change the container tag in each workflow file in the .github/workflows/
directory to refer to your new version.
60 changes: 20 additions & 40 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.