Skip to content

Commit

Permalink
Add prebuilt ponyc releases for Ubuntu 22.04
Browse files Browse the repository at this point in the history
Closes #4062
  • Loading branch information
SeanTAllen committed Apr 27, 2022
1 parent deb1494 commit bc465a1
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM ubuntu:22.04

# Keep annoying tzdata prompt from coming up
# Thanks cmake!
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
build-essential \
clang \
cmake \
git \
make \
xz-utils \
zlib1g-dev \
curl \
python3-pip \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get -y autoremove --purge \
&& apt-get -y clean \
&& pip3 install cloudsmith-cli

# add user pony in order to not run tests as root
RUN useradd -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 DockerHub when you run this ***
#

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

docker build --pull -t "${NAME}:${TODAY}" "${DOCKERFILE_DIR}"
docker push "${NAME}:${TODAY}"
14 changes: 14 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,13 @@ task:
CACHE_BUSTER: 20210224
TRIPLE_VENDOR: unknown
TRIPLE_OS: linux-ubuntu20.04
- name: "nightly: x86-64-unknown-linux-ubuntu22.04"
container:
image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu22.04-builder:20220426
environment:
CACHE_BUSTER: 20220426
TRIPLE_VENDOR: unknown
TRIPLE_OS: linux-ubuntu22.04
- name: "nightly: x86-64-unknown-linux-musl"
container:
image: ponylang/ponyc-ci-x86-64-unknown-linux-musl-builder:20210420
Expand Down Expand Up @@ -444,6 +451,13 @@ task:
CACHE_BUSTER: 20200830
TRIPLE_VENDOR: unknown
TRIPLE_OS: linux-ubuntu20.04
- name: "nightly: x86-64-unknown-linux-ubuntu22.04"
container:
image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu22.04-builder:20220426
environment:
CACHE_BUSTER: 20220426
TRIPLE_VENDOR: unknown
TRIPLE_OS: linux-ubuntu22.04
- name: "release: x86-64-unknown-linux-musl"
container:
image: ponylang/ponyc-ci-x86-64-unknown-linux-musl-builder:20210420
Expand Down
9 changes: 9 additions & 0 deletions .release-notes/4062.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Add prebuilt ponyc binaries for Ubuntu 22.04

We've added prebuilt ponyc binaries specifically made to work on Ubuntu 22.04.

You can opt into using the Ubuntu binaries when using ponyup by running:

```bash
ponyup default ubuntu22.04
```

0 comments on commit bc465a1

Please sign in to comment.