Skip to content

Commit

Permalink
Add Fedora 39 builder (#4483)
Browse files Browse the repository at this point in the history
The builder will be used to build nightly and release versions of ponyc
targetting Fedora 39.

No release notes are being added at this time, nor is RELEASE_PROCESS.md
being updated as until a nightly runs, we can't be sure this will fully work.

The docker image created for the builder can almost certainly be trimmed
down in size, but I am not a Fedora/DNF expert. I am looking to the requester
of Fedora 39 support to assist with trimming the image down.
  • Loading branch information
SeanTAllen authored Jan 28, 2024
1 parent 1dccb5d commit 15dbd4f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .ci-dockerfiles/x64-64-unknown-linux-fedora39-buiilder/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM fedora:39

RUN dnf install -y clang \
cmake \
git \
make \
zlib \
curl \
python3-pip \
lldb \
libstdc++-static \
&& pip3 install cloudsmith-cli

# needed for GitHub actions
RUN git config --global --add safe.directory /__w/ponyc/ponyc

# add user pony in order to not run tests as root
RUN useradd -u 1001 -ms /bin/bash -d /home/pony -g root pony
USER pony
WORKDIR /home/pony
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -o errexit
set -o nounset

#
# *** You should already be logged in to GHCR when you run this ***
#

NAME="ghcr.io/ponylang/ponyc-ci-x86-64-unknown-linux-fedora39-builder"
TODAY=$(date +%Y%m%d)
DOCKERFILE_DIR="$(dirname "$0")"

docker build --pull -t "${NAME}:${TODAY}" "${DOCKERFILE_DIR}"
docker push "${NAME}:${TODAY}"
4 changes: 4 additions & 0 deletions .github/workflows/nightlies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
name: x86-64-unknown-linux-musl
triple-os: linux-musl
triple-vendor: unknown
- image: ghcr.io/ponylang/ponyc-ci-x86-64-unknown-linux-fedora39-builder:20240128
name: x86-64-unknown-linux-fedora39
triple-os: linux-fedora39
triple-vendor: unknown

name: ${{ matrix.name }}
container:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
name: x86-64-unknown-linux-musl
triple-os: linux-musl
triple-vendor: unknown
- image: ghcr.io/ponylang/ponyc-ci-x86-64-unknown-linux-fedora39-builder:20240128
name: x86-64-unknown-linux-fedora39
triple-os: linux-fedora39
triple-vendor: unknown

name: ${{ matrix.name }}
container:
Expand Down

0 comments on commit 15dbd4f

Please sign in to comment.