-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub: mudge/re2#65 From release 2023-07-01, re2 now requires Abseil (libabsl-dev) which is only available by default on Ubuntu 22.04. As older versions of re2 compiled on Ubuntu 20.04 should continue to work, we'll continue to use those even on newer GitHub Actions runners.
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata | ||
|
||
RUN apt-get install -y \ | ||
ruby ruby-dev rubygems build-essential git curl cmake libabsl-dev pkg-config | ||
|
||
RUN gem install --no-document fpm | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
re2_release=$1 | ||
version=$2 | ||
|
||
# Download the re2 release from GitHub | ||
curl -L "https://github.com/google/re2/archive/${re2_release}.tar.gz" | tar xz | ||
cd "re2-${re2_release}" | ||
|
||
# Compile and install the release | ||
make install prefix=/usr DESTDIR=/tmp/installdir | ||
|
||
# Package up the release with fpm | ||
fpm -s dir -t deb -n libre2-dev -v "${version}" -C /tmp/installdir --replaces libre2-5 -d libabsl20210324 usr/include usr/lib |