-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from Matthew-Whitlock/ci_update
Ci update, bugfixes
- Loading branch information
Showing
34 changed files
with
451 additions
and
355 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,29 @@ | ||
#Built for testing, not designed for application use. | ||
|
||
FROM ubuntu:20.04 | ||
#="open-mpi/ompi" for github.com/open-mpi/ompi | ||
ARG OPENMPI_REPO="open-mpi/ompi" | ||
#="tags" or ="heads", for tag or branch name | ||
ARG OPENMPI_VERS_PREFIX="tags" | ||
#="v5.0.0rc10" or ="v5.0.x", ie tag name or branch name. | ||
ARG OPENMPI_VERS="v5.0.0rc10" | ||
run echo Using https://github.com/${OPENMPI_REPO}/git/refs/${OPENMPI_VERS_PREFIX}/${OPENMPI_VERS} | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential python3 m4 autoconf automake libtool flex git zlib1g-dev | ||
|
||
#Add files listing latest commit for this branch/tag, which invalidates the clone | ||
#when a change has been pushed. | ||
ADD https://api.github.com/repos/${OPENMPI_REPO}/git/refs/${OPENMPI_VERS_PREFIX}/${OPENMPI_VERS} commit_info | ||
RUN git clone --recursive --branch ${OPENMPI_VERS} --depth 1 https://github.com/${OPENMPI_REPO}.git ompi_src && \ | ||
mkdir ompi_build ompi_install && cd ompi_src && export AUTOMAKE_JOBS=8 && ./autogen.pl && cd ../ompi_build && ../ompi_src/configure --prefix=/ompi_install --disable-man-pages --with-ft=ulfm && make install -j8 && cd .. | ||
|
||
|
||
#New build stage, tosses out src/build trees from openmpi | ||
FROM ubuntu:20.04 | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake ssh zlib1g-dev | ||
COPY . ./fenix_src | ||
COPY --from=0 ompi_install/ /ompi_install/ | ||
ENV PATH="$PATH:/ompi_install/bin" | ||
RUN mkdir fenix_build fenix_install && cd fenix_build && cmake ../fenix_src -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/ompi_install/bin/mpicc \ | ||
-DFENIX_EXAMPLES=ON -DFENIX_TESTS=ON -DCMAKE_INSTALL_PREFIX=../fenix_install -DMPIEXEC_PREFLAGS="--allow-run-as-root;--map-by;:OVERSUBSCRIBE" && make install -j8 | ||
CMD ["sh", "-c", "cd fenix_build && ctest --verbose --timeout 60"] |
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,81 @@ | ||
version: "3.9" | ||
|
||
x-fenix: &fenix | ||
build: &fenix-build | ||
context: ./ | ||
dockerfile: .github/Dockerfile | ||
args: | ||
OPENMPI_REPO: open-mpi/ompi | ||
OPENMPI_VERS_PREFIX: tags | ||
OPENMPI_VERS: v5.0.0rc10 | ||
#Caches should be manually scoped, or they'll conflict. | ||
x-bake: | ||
cache-from: | ||
- type=gha,scope=default | ||
cache-to: | ||
- type=gha,scope=default,mode=max | ||
|
||
services: | ||
#fenix_ompi_5rc10: | ||
# <<: *fenix | ||
# image: "fenix:ompi_5rc10" | ||
# build: | ||
# <<: *fenix-build | ||
# x-bake: | ||
# cache-from: | ||
# - type=gha,scope=ompi_5rc10 | ||
# cache-to: | ||
# - type=gha,scope=ompi_5rc10,mode=max | ||
|
||
fenix_ompi_5: | ||
<<: *fenix | ||
image: "fenix:ompi_5" | ||
build: | ||
<<: *fenix-build | ||
args: | ||
- OPENMPI_VERS_PREFIX=heads | ||
- OPENMPI_VERS=v5.0.x | ||
x-bake: | ||
cache-from: | ||
- type=gha,scope=ompi_5 | ||
cache-to: | ||
- type=gha,scope=ompi_5,mode=max | ||
|
||
fenix_ompi_main: | ||
<<: *fenix | ||
image: "fenix:ompi_main" | ||
build: | ||
<<: *fenix-build | ||
args: | ||
- OPENMPI_VERS_PREFIX=heads | ||
- OPENMPI_VERS=main | ||
x-bake: | ||
cache-from: | ||
- type=gha,scope=ompi_main | ||
cache-to: | ||
- type=gha,scope=ompi_main,mode=max | ||
|
||
fenix_icldisco_latest: | ||
<<: *fenix | ||
image: "fenix:icldisco_latest" | ||
build: | ||
<<: *fenix-build | ||
args: | ||
- OPENMPI_REPO=icldisco/ompi | ||
- OPENMPI_VERS_PREFIX=heads | ||
- OPENMPI_VERS=ulfm/latest | ||
x-bake: | ||
cache-from: | ||
- type=gha,scope=icldisco_latest | ||
cache-to: | ||
- type=gha,scope=icldisco_latest,mode=max | ||
|
||
#fenix_icldisco_experimental: | ||
# <<: *fenix | ||
# image: fenix/icldisco | ||
# build: | ||
# <<: *fenix-build | ||
# args: | ||
# - OPENMPI_REPO=icldisco/ompi | ||
# - OPENMPI_VERS_PREFIX=heads | ||
# - OPENMPI_VERS=ulfm/experimental |
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,31 @@ | ||
name: Build & Test | ||
|
||
on: | ||
push: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- synchronized | ||
- edited | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: docker/setup-buildx-action@v2 | ||
- name: Build | ||
uses: docker/bake-action@master | ||
with: | ||
files: | | ||
.github/docker-compose.yml | ||
load: true | ||
- name: Test open-mpi v5.0.x | ||
if: success() || failure() | ||
run: docker run fenix:ompi_5 | ||
- name: Test open-mpi main | ||
if: success() || failure() | ||
run: docker run fenix:ompi_main | ||
- name: Test icldisco latest | ||
if: success() || failure() | ||
run: docker run fenix:icldisco_latest |
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
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.