Skip to content

Commit 0e2d074

Browse files
committed
only append cmd_line/* to GITHUB_PATH if runner.os != Windows
1 parent f89b31b commit 0e2d074

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ jobs:
4040
python-version: ${{ matrix.python-version }}
4141
cache: pip
4242
cache-dependency-path: setup.py
43+
- name: Add CLIs to GITHUB_PATH
44+
if: runner.os != 'Windows'
45+
# This is the way to update env variables in a way that persist for the entire job.
46+
run: |
47+
for pkg in cmd_line/*;
48+
do echo "$(pwd)/cmd_line/$pkg/Linux_64bit" >> "$GITHUB_PATH";
49+
done
4350
- name: Install dependencies
4451
run: |
45-
# Note that this is the way to update env variables in a way that persist for the entire job.
46-
# for pkg in cmd_line/*;
47-
# do echo "$(pwd)/cmd_line/$pkg/Linux_64bit" >> "$GITHUB_PATH";
48-
# done
49-
5052
pip install --upgrade pip wheel
5153
pip install m3gnet
5254
pip install -e '.[dev,optional]'

0 commit comments

Comments
 (0)