mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-12-13 22:40:16 +00:00
ci: add log grouping to setup-deps action
This commit is contained in:
13
.github/actions/setup-deps/action.yml
vendored
13
.github/actions/setup-deps/action.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Setup Dependencies
|
name: Install dependencies
|
||||||
description: Setup spack and install dependencies
|
description: Setup spack and install dependencies
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
@@ -14,6 +14,8 @@ inputs:
|
|||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
|
# Composite action step names are not shown in the UI (https://github.com/actions/runner/issues/1877),
|
||||||
|
# so we use ::group:: to make them visible.
|
||||||
steps:
|
steps:
|
||||||
- name: Setup spack
|
- name: Setup spack
|
||||||
uses: spack/setup-spack@v2
|
uses: spack/setup-spack@v2
|
||||||
@@ -24,19 +26,26 @@ runs:
|
|||||||
|
|
||||||
- name: Find system compiler
|
- name: Find system compiler
|
||||||
shell: spack-bash {0}
|
shell: spack-bash {0}
|
||||||
run: spack compiler find
|
run: |
|
||||||
|
echo "::group::Find system compiler"
|
||||||
|
spack compiler find
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Install GCC
|
- name: Install GCC
|
||||||
shell: spack-bash {0}
|
shell: spack-bash {0}
|
||||||
run: |
|
run: |
|
||||||
|
echo "::group::Install GCC"
|
||||||
spack install ${{ inputs.fresh == 'true' && '--fresh' || '' }} gcc@${{ inputs.gcc }} target=x86_64_v3
|
spack install ${{ inputs.fresh == 'true' && '--fresh' || '' }} gcc@${{ inputs.gcc }} target=x86_64_v3
|
||||||
spack compiler find $(spack location -i gcc@${{ inputs.gcc }})
|
spack compiler find $(spack location -i gcc@${{ inputs.gcc }})
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: spack-bash {0}
|
shell: spack-bash {0}
|
||||||
run: |
|
run: |
|
||||||
|
echo "::group::Install dependencies"
|
||||||
spack env create fairmq test/ci/spack-${{ inputs.env }}.yaml
|
spack env create fairmq test/ci/spack-${{ inputs.env }}.yaml
|
||||||
spack -e fairmq add gcc@${{ inputs.gcc }}
|
spack -e fairmq add gcc@${{ inputs.gcc }}
|
||||||
spack -e fairmq config add "packages:all:require:'%gcc@${{ inputs.gcc }}'"
|
spack -e fairmq config add "packages:all:require:'%gcc@${{ inputs.gcc }}'"
|
||||||
spack -e fairmq install --fail-fast ${{ inputs.fresh == 'true' && '--fresh' || '' }}
|
spack -e fairmq install --fail-fast ${{ inputs.fresh == 'true' && '--fresh' || '' }}
|
||||||
spack env activate --sh fairmq | grep '^export ' | sed 's/^export //;s/;$//' >> $GITHUB_ENV
|
spack env activate --sh fairmq | grep '^export ' | sed 's/^export //;s/;$//' >> $GITHUB_ENV
|
||||||
|
echo "::endgroup::"
|
||||||
|
|||||||
3
.github/workflows/buildcache.yml
vendored
3
.github/workflows/buildcache.yml
vendored
@@ -32,7 +32,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: ./.github/actions/setup-deps
|
- name: Install dependencies
|
||||||
|
uses: ./.github/actions/setup-deps
|
||||||
with:
|
with:
|
||||||
gcc: ${{ matrix.gcc }}
|
gcc: ${{ matrix.gcc }}
|
||||||
env: ${{ matrix.env }}
|
env: ${{ matrix.env }}
|
||||||
|
|||||||
Reference in New Issue
Block a user