1818 strategy :
1919 matrix :
2020 arch : [amd64]
21- tag_suffix : [GPU, GPU-Thread-MPI, GPU-Node-MPI]
21+ build : [GPU, GPU-Thread-MPI, GPU-Node-MPI]
2222 # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
2323 permissions :
2424 contents : read
@@ -44,13 +44,13 @@ jobs:
4444 password : ${{ secrets.GITHUB_TOKEN }}
4545
4646 - name : Convert compiler options to simple tag suffix
47- id : GMX_OPTS
47+ id : option
4848 run : |
49- if [[ "${{ matrix.tag_suffix }}" == "GPU-Thread-MPI" ] ]; then
49+ if [ "${{ matrix.build }}" == "GPU-Thread-MPI" ]; then
5050 echo GMX_OPTS="-DGMX_GPU=CUDA -DGMX_THREAD_MPI=ON" >> $GITHUB_ENV
51- elif [[ "${{ matrix.tag_suffix }}" == "GPU-Node-MPI" ] ]; then
51+ elif [ "${{ matrix.build }}" == "GPU-Node-MPI" ]; then
5252 echo GMX_OPTS="-DGMX_GPU=CUDA -DGMX_MPI=ON" >> $GITHUB_ENV
53- elif [[ "${{ matrix.tag_suffix }}" == "GPU" ] ]; then
53+ elif [ "${{ matrix.build }}" == "GPU" ]; then
5454 echo GMX_OPTS="-DGMX_GPU=CUDA -DGMX_MPI=OFF" >> $GITHUB_ENV
5555 fi
5656 # This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
@@ -67,17 +67,17 @@ jobs:
6767 with :
6868 context : ./docker/gromacs
6969 push : true
70- tags : " ${{ steps.meta.outputs.tags }}-GROMACS-${{ matrix.tag_suffix }}"
70+ tags : " ${{ steps.meta.outputs.tags }}-GROMACS-${{ matrix.build }}"
7171 labels : ${{ steps.meta.outputs.labels }}
7272 build-args : |
73- GMX_OPTS=${{ env.GMX_OPTS }}
73+ GMX_OPTS=" ${{ env.GMX_OPTS }}"
7474
7575 build-and-push-lammps-image :
7676 runs-on : ubuntu-latest
7777 strategy :
7878 matrix :
7979 arch : [amd64]
80- tag_suffix : ["GPU-Node-MPI", "GPU"]
80+ build : ["GPU-Node-MPI", "GPU"]
8181
8282 # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
8383 permissions :
@@ -105,11 +105,11 @@ jobs:
105105 password : ${{ secrets.GITHUB_TOKEN }}
106106
107107 - name : Convert compiler options to simple tag suffix
108- id : tag_suffix
108+ id : option
109109 run : |
110- if [[ "${{ matrix.tag_suffix }}" == "GPU-Node-MPI" ] ]; then
110+ if [ "${{ matrix.build }}" == "GPU-Node-MPI" ]; then
111111 echo LMP_OPTS="-D PKG_GPU=on -D GPU_API=cuda -D BUILD_MPI=yes" >> $GITHUB_ENV
112- elif [[ "${{ matrix.tag_suffix }}" == "GPU" ] ]; then
112+ elif [ "${{ matrix.build }}" == "GPU" ]; then
113113 echo LMP_OPTS="-D PKG_GPU=on -D GPU_API=cuda -D BUILD_MI=no" >> $GITHUB_ENV
114114 fi
115115 # This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
@@ -126,17 +126,17 @@ jobs:
126126 with :
127127 context : ./docker/lammps
128128 push : true
129- tags : " ${{ steps.meta.outputs.tags }}-LAMMPS-${{ matrix.tag_suffix }}"
129+ tags : " ${{ steps.meta.outputs.tags }}-LAMMPS-${{ matrix.build }}"
130130 labels : ${{ steps.meta.outputs.labels }}
131131 build-args : |
132- LMP_OPTS=${{ env.LMP_OPTS }}
132+ LMP_OPTS=" ${{ env.LMP_OPTS }}"
133133
134134 build-common-image :
135135 runs-on : ubuntu-latest
136136 strategy :
137137 matrix :
138138 arch : [amd64]
139- build : ["Common-CPU", "Common-GPU"]
139+ build : ["Common-CPU"] # , "Common-GPU"]
140140
141141 permissions :
142142 contents : read
@@ -190,5 +190,5 @@ jobs:
190190 tags : ${{ steps.meta.outputs.tags }}-${{ matrix.build }}
191191 labels : ${{ steps.meta.outputs.labels }}
192192 build-args : |
193- GMX_OPTS=${{ env.GMX_OPTS }}
194- LMP_OPTS=${{ env.LMP_OPTS }}
193+ GMX_OPTS=" ${{ env.GMX_OPTS }}"
194+ LMP_OPTS=" ${{ env.LMP_OPTS }}"
0 commit comments