Skip to content

Commit a5d0cab

Browse files
hageboeckdpiparo
authored andcommitted
[CI] Handle all linux environment settings in one step.
1 parent 4ded8e8 commit a5d0cab

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/root-ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -468,17 +468,13 @@ jobs:
468468
POST_INSTALL_DIR: /github/home/ROOT-CI/PostInstall
469469

470470
steps:
471-
- name: Configure ccache
471+
- name: Set up environment
472472
run: |
473473
ccache -o max_size=${{ matrix.is_special && '5G' || '1.5G' }}
474-
ccache -p || true
475474
ccache -s || true
476-
477-
- name: Set up Python Virtual Env
478-
# if the `if` expr is false, `if` still has exit code 0.
479-
# if the `if` block is entered, the block's exit code becomes the exit
480-
# code of the `if`.
481-
run: 'if [ -d /py-venv/ROOT-CI/bin/ ]; then . /py-venv/ROOT-CI/bin/activate && echo PATH=$PATH >> $GITHUB_ENV; fi'
475+
if [ -d /py-venv/ROOT-CI/bin/ ]; then
476+
. /py-venv/ROOT-CI/bin/activate && echo PATH=$PATH >> $GITHUB_ENV;
477+
fi
482478
483479
- name: Checkout
484480
uses: actions/checkout@v6
@@ -499,7 +495,8 @@ jobs:
499495
500496
- name: Print debug info
501497
run: 'printf "%s@%s\\n" "$(whoami)" "$(hostname)";
502-
ls -la
498+
ls -la;
499+
echo "Path is: $PATH"
503500
'
504501

505502
- uses: root-project/gcc-problem-matcher-improved@main

0 commit comments

Comments
 (0)