-
Notifications
You must be signed in to change notification settings - Fork 65
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
Allow Double Down v1.1.0 Installation in Dockerfile #929
Changes from 34 commits
6166e4f
d057970
3cb814f
0b12126
7d8de72
91245ea
b9c88b6
26ad7e3
2dfa97b
2a1133e
fca55ad
13efae6
ff3ea55
78c2ac2
91d51b0
037e6fc
c3136a9
42a6ab5
787403a
ef39d66
09dfdb3
d9adb17
ab2901c
fe7acca
d2aaca9
e62f0ff
27430e7
4219b7c
d645877
b68d9f8
36adea7
5f844bc
7bd408c
b2609ff
61dff56
abe00a4
0097561
adcebb2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,28 +14,29 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
ubuntu_versions : [ | ||
ubuntu_version : [ | ||
20.04, | ||
22.04, | ||
] | ||
compiler : [ | ||
gcc, | ||
clang, | ||
] | ||
hdf5_versions : [ | ||
hdf5_version : [ | ||
1.14.3, | ||
] | ||
moab_versions : [ | ||
moab_version : [ | ||
5.4.1, | ||
5.5.1, | ||
] | ||
double_down : [ | ||
OFF, | ||
] | ||
geant_version : [ | ||
geant4_version : [ | ||
10.7.4, | ||
11.1.2 | ||
] | ||
double_down_version : [ | ||
v1.0.0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We know this version fails, so we should remove it. We may also want to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have added this to check if CMake 3.16 shows any error messages since it is lower than 1.1.0, but it just passed. That means, CMake will also get failed for Geant4 as well. |
||
v1.1.0, | ||
] | ||
|
||
name: Installing Dependencies, Building DAGMC and running tests | ||
steps: | ||
|
@@ -58,17 +59,34 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Configure docker image tag | ||
run: | | ||
image_base_tag=ghcr.io/${{ github.repository_owner }}/ | ||
image_base_tag+=dagmc-ci-ubuntu-${{ matrix.ubuntu_version }} | ||
image_base_tag+=-${{ matrix.compiler}} | ||
image_base_tag+=-hdf5_${{ matrix.hdf5_version}} | ||
image_base_tag+=-moab_${{ matrix.moab_version }} | ||
image_base_tag+=-geant4_${{ matrix.geant4_version }} | ||
image_base_tag+=-double_down_${{ matrix.double_down_version }} | ||
echo "image_base_tag=${image_base_tag}" >> "$GITHUB_ENV" | ||
|
||
- name: Installing Dependencies in Docker image | ||
uses: firehed/multistage-docker-build-action@v1 | ||
with: | ||
repository: ghcr.io/${{ github.repository_owner }}/dagmc-ci-ubuntu-${{ matrix.ubuntu_versions }}-${{ matrix.compiler}}-geant4_${{ matrix.geant_version }}-hdf5_${{ matrix.hdf5_versions}}-moab_${{ matrix.moab_versions }} | ||
repository: ${{ env.image_base_tag }} | ||
stages: base, external_deps, hdf5, moab, dagmc | ||
server-stage: dagmc_test | ||
quiet: false | ||
parallel: true | ||
tag-latest-on-default: ${{ env.tag-latest-on-default }} | ||
dockerfile: CI/Dockerfile | ||
build-args: double_down=${{ matrix.double_down}}, geant4_version=${{ matrix.geant_version }}, COMPILER=${{ matrix.compiler }}, UBUNTU_VERSION=${{ matrix.ubuntu_versions }}, HDF5_VERSION=${{ matrix.hdf5_versions }}, MOAB_BRANCH=${{ matrix.moab_versions }} | ||
build-args: > | ||
UBUNTU_VERSION=${{ matrix.ubuntu_version }}, | ||
COMPILER=${{ matrix.compiler }}, | ||
HDF5_VERSION=${{ matrix.hdf5_version }}, | ||
MOAB_VERSION=${{ matrix.moab_version }}, | ||
GEANT4_VERSION=${{ matrix.geant4_version }}, | ||
DOUBLE_DOWN_VERSION=${{ matrix.double_down_version}} | ||
|
||
|
||
push_stable_ci_img: | ||
|
@@ -77,28 +95,28 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
ubuntu_versions : [ | ||
ubuntu_version : [ | ||
20.04, | ||
22.04, | ||
] | ||
compiler : [ | ||
gcc, | ||
clang, | ||
] | ||
hdf5_versions : [ | ||
hdf5_version : [ | ||
1.14.3, | ||
] | ||
moab_versions : [ | ||
moab_version : [ | ||
5.4.1, | ||
5.5.1, | ||
] | ||
double_down : [ | ||
OFF, | ||
] | ||
geant_version : [ | ||
geant4_version : [ | ||
10.7.4, | ||
11.1.2 | ||
] | ||
double_down_version : [ | ||
off | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This matrix should probably match the matrix above to make sure all the right images exist. |
||
] | ||
|
||
name: Pushing final images | ||
steps: | ||
|
@@ -110,10 +128,17 @@ jobs: | |
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Store image name | ||
- name: Configure docker image tag | ||
if: ${{ github.repository_owner == 'svalinn' }} | ||
run: | | ||
echo "image_base_tag=ghcr.io/${{ github.repository_owner }}/dagmc-ci-ubuntu-${{ matrix.ubuntu_versions }}-${{ matrix.compiler }}-geant4_${{ matrix.geant_version }}-hdf5_${{ matrix.hdf5_versions }}-moab_${{ matrix.moab_versions }}" >> "$GITHUB_ENV" | ||
image_base_tag=ghcr.io/${{ github.repository_owner }}/ | ||
image_base_tag+=dagmc-ci-ubuntu-${{ matrix.ubuntu_version }} | ||
image_base_tag+=-${{ matrix.compiler}} | ||
image_base_tag+=-hdf5_${{ matrix.hdf5_version}} | ||
image_base_tag+=-moab_${{ matrix.moab_version }} | ||
image_base_tag+=-geant4_${{ matrix.geant4_version }} | ||
image_base_tag+=-double_down_${{ matrix.double_down_version }} | ||
echo "image_base_tag=${image_base_tag}" >> "$GITHUB_ENV" | ||
|
||
- name: Push Image as latest img | ||
if: ${{ github.repository_owner == 'svalinn' && github.ref == 'refs/heads/develop' }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,3 @@ jobs: | |
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
geant_version: 11.1.2 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahnaf-tahmid-chowdhury : This change introduced a failure - you can’t split this across multiple lines - that we didn’t review carefully enough in the PR. Please submit an update to fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's wait for all the new Docker images to finish building, then we can rerun the Linux tests to see what happens.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked at the failed logs and saw that the failure is because this multi-line container name is resolving with spaces in the name, so it definitely needs to be fixed.