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

More CI #50

Merged
merged 2 commits into from
Nov 7, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/CIBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
- os: Alma9
file: Docs/DockerFiles/Alma9/Dockerfile
tag: alma9latest
cmakeoptions: -DUseDoubles=1
- os: Alma9 float
file: Docs/DockerFiles/Alma9/Dockerfile
tag: alma9latest
cmakeoptions: -DUseDoubles=0
- os: Rocky9
file: Docs/DockerFiles/Rocky9/Dockerfile
tag: rocky9latest
cmakeoptions: -DUseGPU=1

name: Build CI ${{ matrix.os }}

Expand All @@ -31,4 +40,4 @@ jobs:
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build the Docker image
run: docker build . --file ${{ matrix.file }} --tag ghcr.io/${{ github.repository_owner }}/nuoscillator:${{ matrix.tag }} --build-arg NUOSCILLATOR_VERSION=${{ github.head_ref }}
run: docker build . --file ${{ matrix.file }} --tag ghcr.io/${{ github.repository_owner }}/nuoscillator:${{ matrix.tag }} --build-arg NUOSCILLATOR_VERSION=${{ github.head_ref }} --build-arg CMAKE_OPTIONS="${{ matrix.cmakeoptions }}"
5 changes: 4 additions & 1 deletion Docs/DockerFiles/Alma9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ LABEL compiler="GNU 11.3.1"
LABEL root_version="v6.26.10"
LABEL org.opencontainers.image.description="Official NuOscillator container"

ARG CMAKE_OPTIONS
ENV CMAKE_OPTIONS=${CMAKE_OPTIONS:-DUseDoubles=1}

# Declare the build argument
ARG NUOSCILLATOR_VERSION
ENV NUOSCILLATOR_VERSION=${NUOSCILLATOR_VERSION:-develop}
Expand All @@ -24,7 +27,7 @@ RUN git checkout ${NUOSCILLATOR_VERSION}

RUN mkdir -p ${NuOscillator_INSTALL_DIR}
WORKDIR ${NuOscillator_INSTALL_DIR}
RUN cmake -DUseGPU=0 -DUseMultithreading=1 -DUseDoubles=1 -DUseCUDAProb3=0 -DUseCUDAProb3Linear=1 -DUseProb3ppLinear=1 -DUseNuFASTLinear=1 -DUseProbGPULinear=0 ${NuOscillator_WORK_DIR}
RUN cmake -DUseGPU=0 -DUseMultithreading=1 ${CMAKE_OPTIONS} -DUseCUDAProb3=0 -DUseCUDAProb3Linear=1 -DUseProb3ppLinear=1 -DUseNuFASTLinear=1 -DUseProbGPULinear=0 ${NuOscillator_WORK_DIR}
RUN make VERBOSE=1 && make install

# KS: Need to set them here, otherwise container using this container will not be able to find NuOscillator
Expand Down
37 changes: 37 additions & 0 deletions Docs/DockerFiles/Rocky9/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#To run use: docker build -t nuoscillator .
# KS: Get glorious container from Kamil which will work as a base
FROM kamilskwarczynski/nukamil:latest AS nuoscillator_build

# Add a label for the author
LABEL website="https://dbarrow257.github.io/NuOscillator/"
LABEL org.opencontainers.image.description="Official NuOscillator container"

ARG CMAKE_OPTIONS
ENV CMAKE_OPTIONS=${CMAKE_OPTIONS:-DUseGPU=1}

# Declare the build argument
ARG NUOSCILLATOR_VERSION
ENV NUOSCILLATOR_VERSION=${NUOSCILLATOR_VERSION:-develop}
ENV NuOscillator_WORK_DIR=/opt/NuOscillator/
ENV NuOscillator_INSTALL_DIR=/opt/NuOscillator/build/

RUN mkdir -p ${NuOscillator_WORK_DIR}

WORKDIR /opt/
# KS: Let's clone NuOscillator
RUN --mount=type=ssh git clone https://github.com/dbarrow257/NuOscillator ${NuOscillator_WORK_DIR}
WORKDIR ${NuOscillator_WORK_DIR}
RUN git checkout ${NUOSCILLATOR_VERSION}

RUN mkdir -p ${NuOscillator_INSTALL_DIR}
WORKDIR ${NuOscillator_INSTALL_DIR}
RUN cmake -DUseGPU=1 -DUseMultithreading=1 -DUseDoubles=1 -DUseCUDAProb3=1 -DUseCUDAProb3Linear=0 -DUseProb3ppLinear=1 -DUseNuFASTLinear=1 -DUseProbGPULinear=1 ${NuOscillator_WORK_DIR}
RUN make VERBOSE=1 && make install

# KS: Need to set them here, otherwise container using this container will not be able to find NuOscillator
ENV NuOscillator_ROOT=${NuOscillator_INSTALL_DIR}
ENV PATH=${NuOscillator_ROOT}/bin:${PATH} \
LD_LIBRARY_PATH=${NuOscillator_ROOT}/lib:${LD_LIBRARY_PATH}

# Start from NuOscillator install dir
WORKDIR ${NuOscillator_INSTALL_DIR}