Skip to content

Commit ecd2d8e

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

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
include:
21-
- julia_version: "1.9"
22-
docker_image: graphcore/poplar:2.5.1-ubuntu-20.04-20220629
23-
build_docs: false
24-
- julia_version: "1.10"
25-
docker_image: graphcore/poplar:3.2.0-ubuntu-20.04-20230314
26-
build_docs: true
21+
# - julia_version: "1.9"
22+
# docker_image: graphcore/poplar:2.5.1-ubuntu-20.04-20220629
23+
# build_docs: false
24+
# - julia_version: "1.10"
25+
# docker_image: graphcore/poplar:3.2.0-ubuntu-20.04-20230314
26+
# build_docs: true
2727
- julia_version: "^1.11.0-0"
2828
docker_image: graphcore/poplar:3.3.0-ubuntu-20.04-20230703
2929
build_docs: false
@@ -38,6 +38,7 @@ jobs:
3838
DEBIAN_FRONTEND: noninteractive
3939
- uses: actions/checkout@v4
4040
- name: "Declare git repo safe"
41+
if: ${{ matrix.build_docs }}
4142
# In the docker container the repo is owned by 1001:123, causing the
4243
# following error when running git commands:
4344
#
@@ -57,6 +58,19 @@ jobs:
5758
cache-artifacts: "true"
5859
cache-packages: "true"
5960
cache-compiled: "true"
61+
62+
- name: "Export environment variables"
63+
# Starting from graphcore/poplar:3.3.0 some environment variables like `CPATH` and
64+
# `LD_LIBRARY_PATH`, which we need for building the bindings, are only set with the
65+
# bash shell.
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}"
73+
6074
- uses: julia-actions/julia-buildpkg@v1
6175
env:
6276
CXX: g++

0 commit comments

Comments
 (0)