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

Add GCC images #21

Merged
merged 7 commits into from
Sep 14, 2021
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
4 changes: 2 additions & 2 deletions .github/workflows/dockerfiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
result: ${{ steps.dockerfile_list.outputs.dockerfilelist_matrix }}
run: |
echo ${result}
if [[ "${result}" == "" ]]; then
if [[ "${result}" == "[]" ]]; then
printf "The matrix is empty, will not trigger next workflow.\n"
echo "::set-output name=empty_matrix::true"
else
Expand All @@ -116,7 +116,7 @@ jobs:
fail-fast: false
matrix:
result: ${{ fromJson(needs.update.outputs.dockerfile_matrix) }}
if: ${{ needs.update.outputs.empty_matrix == 'false' }}
if: ${{ needs.update.outputs.empty_matrix == false }}

name: "Build ${{ matrix.result.name }}"
steps:
Expand Down
8 changes: 8 additions & 0 deletions ubuntu/gcc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ARG ubuntu_version
FROM ghcr.io/rse-radiuss/ubuntu:$ubuntu_version

# Install gcc with spack
ARG gcc_version
ENV gcc_version=$gcc_version

RUN spack install gcc@${gcc_version}
21 changes: 21 additions & 0 deletions ubuntu/gcc/uptodate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dockerbuild:
build_args:
gcc_version:
key: gcc
versions:
# Needs patch from spack https://github.com/spack/spack/pull/25945
# - "4.9.3"
- "7.3.0"
- "8.1.0"
- "9.4.0"
- "10.3.0"
- "11.2.0"

# Look for ubuntu versions for our base builds
ubuntu_version:
key: ubuntu
name: ghcr.io/rse-radiuss/ubuntu
type: container
startat: "20.04"
filter:
- "^[0-9]+[.]04$"