Skip to content

Commit dfd2b93

Browse files
committed
[CI] Explicitly export environment variables
1 parent 89c1cb1 commit dfd2b93

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,19 @@ jobs:
5757
cache-artifacts: "true"
5858
cache-packages: "true"
5959
cache-compiled: "true"
60+
- name: "Export environment variables"
61+
# Starting from graphcore/poplar:3.3.0 some environment variables like `CPATH` and
62+
# `LD_LIBRARY_PATH`, which we need for building the bindings, are only set with the
63+
# `bash` shell, while GHA uses by default `sh` for steps inside containers. So we
64+
# need to start a step with `shell: bash` and re-export the relevant variables for
65+
# the following steps.
66+
shell: bash
67+
run: |
68+
echo "PATH=${PATH}" >> "${GITHUB_ENV}"
69+
echo "CPATH=${CPATH}" >> "${GITHUB_ENV}"
70+
echo "LIBRARY_PATH=${LIBRARY_PATH}" >> "${GITHUB_ENV}"
71+
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> "${GITHUB_ENV}"
72+
echo "POPLAR_SDK_ENABLED=${POPLAR_SDK_ENABLED}" >> "${GITHUB_ENV}"
6073
- uses: julia-actions/julia-buildpkg@v1
6174
env:
6275
CXX: g++

0 commit comments

Comments
 (0)