Skip to content

SPACK_ROOT not set #25

@AlexanderRichert-NOAA

Description

@AlexanderRichert-NOAA

It seems SPACK_ROOT isn't set by this action. Is that intentional? The following workflow shows nothing for SPACK_ROOT (https://github.com/AlexanderRichert-NOAA/ci-playground/actions/runs/19686556436/job/56393323435):

name: Test

on: [push, pull_request, workflow_dispatch]

jobs:
  test:
    runs-on: ubuntu-24.04
    steps:
      - uses: spack/setup-spack@v2

      - name: Run tests
        shell: spack-bash {0}
        run: |
          echo SPACK_ROOT: $SPACK_ROOT

The rest of the setup is clearly being executed, and if I really have to I can derive $SPACK_ROOT from $(which spack). Would it make sense to add it to $GITHUB_ENV`?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions