Skip to content

Commit

Permalink
Merge pull request #1182 from casacore/ast-882-add-ubuntu22-ci-builds
Browse files Browse the repository at this point in the history
AST-882 Add Ubuntu 22 CI builds
  • Loading branch information
tammojan committed Apr 7, 2022
2 parents 0fcce38 + 4410eb3 commit 318fbcd
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 1 deletion.
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

0 comments on commit 318fbcd

Please sign in to comment.