Skip to content

Commit 3b4b1c5

Browse files
committed
Build also for Poplar SDK v3.3
1 parent 14a1f59 commit 3b4b1c5

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/build_libpoplar.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
matrix:
1919
include:
2020
- docker_image: graphcore/poplar:3.2.0-ubuntu-20.04-20230314
21+
- docker_image: graphcore/poplar:3.3.0-ubuntu-20.04-20230703
2122
steps:
2223
- name: "Install, g++, jq"
2324
# g++ is needed to build the wrapper, jq for
@@ -32,6 +33,19 @@ jobs:
3233
with:
3334
version: "1.7"
3435
- uses: julia-actions/cache@v1
36+
- name: "Export environment variables"
37+
# Starting from graphcore/poplar:3.3.0 some environment variables like `CPATH` and
38+
# `LD_LIBRARY_PATH`, which we need for building the bindings, are only set with the
39+
# `bash` shell, while GHA uses by default `sh` for steps inside containers. So we
40+
# need to start a step with `shell: bash` and re-export the relevant variables for
41+
# the following steps.
42+
shell: bash
43+
run: |
44+
echo "PATH=${PATH}" >> "${GITHUB_ENV}"
45+
echo "CPATH=${CPATH}" >> "${GITHUB_ENV}"
46+
echo "LIBRARY_PATH=${LIBRARY_PATH}" >> "${GITHUB_ENV}"
47+
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> "${GITHUB_ENV}"
48+
echo "POPLAR_SDK_ENABLED=${POPLAR_SDK_ENABLED}" >> "${GITHUB_ENV}"
3549
- name: Instantiate wrapper generation environment
3650
working-directory: ${{ github.workspace }}/deps
3751
run: |
@@ -54,5 +68,5 @@ jobs:
5468
julia --project=. --color=yes build_tarballs.jl --verbose
5569
- uses: actions/upload-artifact@v4
5670
with:
57-
name: products
71+
name: products-${{ matrix.docker_image }}
5872
path: ${{ github.workspace }}/deps/bb_recipe/products

deps/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
77
libcxxwrap_julia_jll = "3eaa8342-bff7-56a5-9981-c04077f7cee7"
88

99
[compat]
10-
Clang = "0.14, 0.17.4"
10+
Clang = "0.14, 0.17.4, 0.18"
1111
JSON = "0.21.4"
1212
Pkg = "1"
1313
Scratch = "1.1"

0 commit comments

Comments
 (0)