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

AST-882 Add Ubuntu 22 CI builds #1182

Merged
merged 1 commit into from
Apr 7, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ jobs:
- ubuntu1804_gcc
- ubuntu2004_clang
- ubuntu2004_gcc
- ubuntu2204_clang
- ubuntu2204_gcc
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Build container
run: docker build . -t ${{ matrix.dist }} -f docker/${{ matrix.dist }}.docker

Expand Down
53 changes: 53 additions & 0 deletions docker/ubuntu2204_clang.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
FROM ubuntu:22.04
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y \
clang \
cmake \
flex \
bison \
libblas-dev \
liblapack-dev \
libcfitsio-dev \
wcslib-dev \
libfftw3-dev \
gfortran \
libncurses5-dev \
libreadline6-dev \
libhdf5-serial-dev \
libboost-dev \
libboost-python-dev \
libboost-test-dev \
libgsl-dev \
python-is-python3 \
python3-numpy \
wget \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
# Install WSRT Measures (extra casacore data, for tests)
# Note: The file on the ftp site is updated daily. When warnings regarding leap
# seconds appear, ignore them or regenerate the docker image.
&& wget -nv -O /WSRT_Measures.ztar ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar \
&& mkdir -p /usr/local/share/casacore/data \
&& cd /usr/local/share/casacore/data \
&& tar xfz /WSRT_Measures.ztar \
&& rm /WSRT_Measures.ztar
ADD . /code
RUN useradd -ms /bin/bash casacore \
&& chown casacore.casacore /code
USER casacore
RUN mkdir /code/build
WORKDIR /code/build
RUN cmake .. \
-DBUILD_TESTING=ON \
-DUSE_OPENMP=OFF \
-DUSE_HDF5=ON \
-DBUILD_PYTHON=OFF \
-DBUILD_PYTHON3=ON \
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} \
-DDATA_DIR=/usr/local/share/casacore/data \
-DCMAKE_C_COMPILER=/usr/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
&& make -j`nproc`
USER root
RUN make install
USER casacore
52 changes: 52 additions & 0 deletions docker/ubuntu2204_gcc.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
FROM ubuntu:22.04
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y \
gcc \
g++ \
cmake \
flex \
bison \
libblas-dev \
liblapack-dev \
libcfitsio-dev \
wcslib-dev \
libfftw3-dev \
gfortran \
libncurses5-dev \
libreadline6-dev \
libhdf5-serial-dev \
libboost-dev \
libboost-python-dev \
libboost-test-dev \
libgsl-dev \
python-is-python3 \
python3-numpy \
wget \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
# Install WSRT Measures (extra casacore data, for tests)
# Note: The file on the ftp site is updated daily. When warnings regarding leap
# seconds appear, ignore them or regenerate the docker image.
&& wget -nv -O /WSRT_Measures.ztar ftp://ftp.astron.nl/outgoing/Measures/WSRT_Measures.ztar \
&& mkdir -p /usr/local/share/casacore/data \
&& cd /usr/local/share/casacore/data \
&& tar xfz /WSRT_Measures.ztar \
&& rm /WSRT_Measures.ztar
ADD . /code
RUN useradd -ms /bin/bash casacore \
&& chown casacore.casacore /code
USER casacore
RUN mkdir /code/build
WORKDIR /code/build
RUN cmake .. \
-DBUILD_TESTING=ON \
-DUSE_OPENMP=OFF \
-DUSE_HDF5=ON \
-DBUILD_PYTHON=OFF \
-DBUILD_PYTHON3=ON \
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} \
-DDATA_DIR=/usr/local/share/casacore/data \
&& make -j`nproc`
USER root
RUN make install
USER casacore