Skip to content

Commit

Permalink
Fix quadruple quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
jbigot committed Jul 5, 2024
1 parent 38cba85 commit df03839
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/spack_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
path: spack/2b-compiler
swap: 10G
swap: 15G
image-name: builder:${{ matrix.version }}-${{ matrix.compiler }}-2b
build-args: |
VERSION=${{ matrix.version }}
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
path: spack/3b-compiler
swap: 10G
swap: 15G
image-name: builder:${{ matrix.version }}-${{ matrix.compiler }}-3b
build-args: |
VERSION=${{ matrix.version }}
Expand Down
6 changes: 3 additions & 3 deletions spack/2b-compiler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ RUN spack solve -I --reuse "$(cat compilerpkg.lst)" target=x86_64 \


# Workaround clang 14.0.2 that reports version as 14.0.1
RUN spack find -v --no-groups ""$(cat compilerpkg.lst)"" > compilerpkg.lst \
&& spack find --no-groups ""$(cat compilerpkg.lst)"" > compiler.lst \
RUN spack find -v --no-groups "$(cat compilerpkg.lst)" > compilerpkg.lst \
&& spack find --no-groups "$(cat compilerpkg.lst)" > compiler.lst \
&& sed 's/llvm/clang/' -i compiler.lst \
&& sed 's/[email protected]/[email protected]/' -i compiler.lst \
&& spack clean -a
Expand All @@ -33,7 +33,7 @@ RUN spack compiler remove --scope site -a gcc || true \
&& spack compiler remove -a clang || true \
&& spack compiler remove -a gcc || true \
&& spack compiler find --scope site \
"$(spack find --format '{name}' --paths ""$(cat compilerpkg.lst)"" | awk '{print $2}')" \
"$(spack find --format '{name}' --paths "$(cat compilerpkg.lst)" | awk '{print $2}')" \
&& spack compiler remove --scope defaults -a gcc || true \
&& spack compiler remove --scope defaults -a clang || true \
&& spack compiler remove --scope system -a gcc || true \
Expand Down
2 changes: 1 addition & 1 deletion spack/3a-precomp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ LABEL "org.opencontainers.image.source"="https://github.com/pdidev/test_env"

COPY spack.yaml spack.yaml
RUN spack env create pdienv spack.yaml \
&& spack -e pdienv add -l compilerpkg ""$(cat compilerpkg.lst)"" \
&& spack -e pdienv add -l compilerpkg "$(cat compilerpkg.lst)" \
&& spack -e pdienv add -l compiler "$(cat compiler.lst)" \
&& spack clean -a

Expand Down

0 comments on commit df03839

Please sign in to comment.